summaryrefslogtreecommitdiff
path: root/lib/libssl/s3_srvr.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-06-04 14:10:24 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-06-04 14:10:24 +0000
commitad6177b2f5ad04223501eabac49eea913f229ab4 (patch)
tree65f93cf253cf7595cb10edfc97d162a7fd122014 /lib/libssl/s3_srvr.c
parent87d1db1a9e9211db765776a4cc58461f701a42a6 (diff)
without overthinking it, replace a few memcmp calls with CRYPTO_memcmp
where it is feasible to do so. better safe than sorry.
Diffstat (limited to 'lib/libssl/s3_srvr.c')
-rw-r--r--lib/libssl/s3_srvr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libssl/s3_srvr.c b/lib/libssl/s3_srvr.c
index f12b680e996..948569a156e 100644
--- a/lib/libssl/s3_srvr.c
+++ b/lib/libssl/s3_srvr.c
@@ -1025,7 +1025,7 @@ ssl3_get_client_hello(SSL *s)
goto f_err;
}
/* else cookie verification succeeded */
- } else if (memcmp(s->d1->rcvd_cookie, s->d1->cookie,
+ } else if (CRYPTO_memcmp(s->d1->rcvd_cookie, s->d1->cookie,
s->d1->cookie_len) != 0) {
/* default verification */
al = SSL_AD_HANDSHAKE_FAILURE;