Fix compilation with no-ec and/or no-tlsext.
[openssl.git] / ssl / s3_both.c
index 0fc060f455f894e95eff6612b6954e8b7f85f01f..a537738f4298971a61304ab130921f81ab6b652a 100644 (file)
@@ -233,7 +233,7 @@ int ssl3_get_finished(SSL *s, int a, int b)
 
 #ifdef OPENSSL_NO_NEXTPROTONEG
        /* the mac has already been generated when we received the
-        * change cipher spec message and is in s->s3->tmp.peer_finish_md.
+        * change cipher spec message and is in s->s3->tmp.peer_finish_md
         */ 
 #endif
 
@@ -265,7 +265,7 @@ int ssl3_get_finished(SSL *s, int a, int b)
                goto f_err;
                }
 
-       if (memcmp(p, s->s3->tmp.peer_finish_md, i) != 0)
+       if (CRYPTO_memcmp(p, s->s3->tmp.peer_finish_md, i) != 0)
                {
                al=SSL_AD_DECRYPT_ERROR;
                SSLerr(SSL_F_SSL3_GET_FINISHED,SSL_R_DIGEST_CHECK_FAILED);