Skip to content

Commit

Permalink
Remove internal uses of SSLv23_*.
Browse files Browse the repository at this point in the history
Change-Id: I69157b5e2527a2f92fc7b4b924a36e3399d043db
Reviewed-on: https://boringssl-review.googlesource.com/19444
Reviewed-by: David Benjamin <[email protected]>
Commit-Queue: David Benjamin <[email protected]>
CQ-Verified: CQ bot account: [email protected] <[email protected]>
  • Loading branch information
davidben authored and CQ bot account: [email protected] committed Aug 18, 2017
1 parent 388dfa1 commit 65b87ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fuzz/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static int NPNSelectCallback(SSL *ssl, uint8_t **out, uint8_t *out_len,
}

struct GlobalState {
GlobalState() : ctx(SSL_CTX_new(SSLv23_method())) {
GlobalState() : ctx(SSL_CTX_new(TLS_method())) {
debug = getenv("BORINGSSL_FUZZER_DEBUG") != nullptr;

const uint8_t *bufp = kRSAPrivateKeyDER;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static int NPNAdvertiseCallback(SSL *ssl, const uint8_t **out,

struct GlobalState {
GlobalState()
: ctx(SSL_CTX_new(SSLv23_method())) {
: ctx(SSL_CTX_new(TLS_method())) {
debug = getenv("BORINGSSL_FUZZER_DEBUG") != nullptr;

const uint8_t *bufp = kRSAPrivateKeyDER;
Expand Down
2 changes: 1 addition & 1 deletion tool/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ bool Client(const std::vector<std::string> &args) {
return false;
}

bssl::UniquePtr<SSL_CTX> ctx(SSL_CTX_new(SSLv23_client_method()));
bssl::UniquePtr<SSL_CTX> ctx(SSL_CTX_new(TLS_method()));

const char *keylog_file = getenv("SSLKEYLOGFILE");
if (keylog_file) {
Expand Down

0 comments on commit 65b87ce

Please sign in to comment.