diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-11-25 14:08:08 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-11-25 19:22:12 +0100 |
commit | 6938c954b072c1ddddeb0ec9f6a151df0d2cd925 (patch) | |
tree | 8f2ac3d566ec62cc106c60e79c893ec42fca359c /ssl/t1_enc.c | |
parent | Configuratons: add -DFILIO_H to harmonized Solaris targets. (diff) | |
download | openssl-6938c954b072c1ddddeb0ec9f6a151df0d2cd925.tar.xz openssl-6938c954b072c1ddddeb0ec9f6a151df0d2cd925.zip |
Remove unused cert_verify_mac code
Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'ssl/t1_enc.c')
-rw-r--r-- | ssl/t1_enc.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index 729ceccb7e..906029c8fc 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -698,36 +698,6 @@ int tls1_setup_key_block(SSL *s) return (ret); } - -int tls1_cert_verify_mac(SSL *s, int md_nid, unsigned char *out) -{ - unsigned int ret; - EVP_MD_CTX ctx, *d = NULL; - int i; - - if (!ssl3_digest_cached_records(s, 0)) - return 0; - - for (i = 0; i < SSL_MAX_DIGEST; i++) { - if (s->s3->handshake_dgst[i] - && EVP_MD_CTX_type(s->s3->handshake_dgst[i]) == md_nid) { - d = s->s3->handshake_dgst[i]; - break; - } - } - if (!d) { - SSLerr(SSL_F_TLS1_CERT_VERIFY_MAC, SSL_R_NO_REQUIRED_DIGEST); - return 0; - } - - EVP_MD_CTX_init(&ctx); - if (EVP_MD_CTX_copy_ex(&ctx, d) <=0 - || EVP_DigestFinal_ex(&ctx, out, &ret) <= 0) - ret = 0; - EVP_MD_CTX_cleanup(&ctx); - return ((int)ret); -} - int tls1_final_finish_mac(SSL *s, const char *str, int slen, unsigned char *out) { |