Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed Nov 23, 2022
1 parent c891919 commit d76b223
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
7 changes: 2 additions & 5 deletions examples/tls_client_session_boringssl.cc
Expand Up @@ -56,11 +56,8 @@ int TLSClientSession::init(bool &early_data_enabled,
SSL_set_app_data(ssl_, client->conn_ref());
SSL_set_connect_state(ssl_);

if ((quic_version & 0xff000000) == 0xff000000) {
SSL_set_quic_use_legacy_codepoint(ssl_, 1);
} else {
SSL_set_quic_use_legacy_codepoint(ssl_, 0);
}
SSL_set_quic_use_legacy_codepoint(ssl_,
(quic_version & 0xff000000) == 0xff000000);

switch (app_proto) {
case AppProtocol::H3:
Expand Down
7 changes: 2 additions & 5 deletions examples/tls_client_session_openssl.cc
Expand Up @@ -58,11 +58,8 @@ int TLSClientSession::init(bool &early_data_enabled,
SSL_set_app_data(ssl_, client->conn_ref());
SSL_set_connect_state(ssl_);

if ((quic_version & 0xff000000) == 0xff000000) {
SSL_set_quic_use_legacy_codepoint(ssl_, 1);
} else {
SSL_set_quic_use_legacy_codepoint(ssl_, 0);
}
SSL_set_quic_use_legacy_codepoint(ssl_,
(quic_version & 0xff000000) == 0xff000000);

switch (app_proto) {
case AppProtocol::H3:
Expand Down
7 changes: 2 additions & 5 deletions examples/tls_client_session_wolfssl.cc
Expand Up @@ -66,11 +66,8 @@ int TLSClientSession::init(bool &early_data_enabled,
wolfSSL_set_app_data(ssl_, client->conn_ref());
wolfSSL_set_connect_state(ssl_);

if ((quic_version & 0xff000000) == 0xff000000) {
wolfSSL_set_quic_use_legacy_codepoint(ssl_, 1);
} else {
wolfSSL_set_quic_use_legacy_codepoint(ssl_, 0);
}
wolfSSL_set_quic_use_legacy_codepoint(ssl_, (quic_version & 0xff000000) ==
0xff000000);

switch (app_proto) {
case AppProtocol::H3:
Expand Down

0 comments on commit d76b223

Please sign in to comment.