diff options
author | David Benjamin <davidben@chromium.org> | 2014-10-01 01:46:36 +0400 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-10-01 02:59:23 +0400 |
commit | ef5c4946f3e89d4f0d97bf63e98b7d972c1b3cb3 (patch) | |
tree | 4199a2ea9ac86393a47d42daf2d98f2d591b673d /ssl/ssl_lib.c | |
parent | 5b33a5e0dd7f1660a2f3f5569c7fb6e3675972db (diff) |
Remove OPENSSL_SSL_DEBUG_BROKEN_PROTOCOL.
We patch bugs into the runner implementation for testing, not our own.
Change-Id: I0a8ac73eaeb70db131c01a0fd9c84f258589a884
Reviewed-on: https://boringssl-review.googlesource.com/1845
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r-- | ssl/ssl_lib.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 7270ddea..5562e202 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -2282,14 +2282,6 @@ CERT_PKEY *ssl_get_server_send_pkey(const SSL *s) c = s->cert; ssl_set_cert_masks(c, s->s3->tmp.new_cipher); -#ifdef OPENSSL_SSL_DEBUG_BROKEN_PROTOCOL - /* Broken protocol test: return last used certificate: which may - * mismatch the one expected. - */ - if (c->cert_flags & SSL_CERT_FLAG_BROKEN_PROTOCOL) - return c->key; -#endif - i = ssl_get_server_cert_index(s); /* This may or may not be an error. */ @@ -2309,15 +2301,6 @@ EVP_PKEY *ssl_get_sign_pkey(SSL *s,const SSL_CIPHER *cipher, const EVP_MD **pmd) alg_a = cipher->algorithm_auth; c=s->cert; -#ifdef OPENSSL_SSL_DEBUG_BROKEN_PROTOCOL - /* Broken protocol test: use last key: which may - * mismatch the one expected. - */ - if (c->cert_flags & SSL_CERT_FLAG_BROKEN_PROTOCOL) - idx = c->key - c->pkeys; - else -#endif - if (alg_a & SSL_aRSA) { if (c->pkeys[SSL_PKEY_RSA_SIGN].privatekey != NULL) |