summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hogan <doug@cvs.openbsd.org>2015-06-20 01:21:52 +0000
committerDoug Hogan <doug@cvs.openbsd.org>2015-06-20 01:21:52 +0000
commitb4321c57bee391b125137baf6a67f70bcdb41d1d (patch)
tree86df311c45103df7725d016ae7849dfaba4e06b6
parent4db90b897a45104746494206909cd395ae9a1351 (diff)
Replace internal call to CRYPTO_memcmp with timingsafe_memcmp.
Suggested by jsing@. ok jsing@ miod@
-rw-r--r--lib/libssl/src/ssl/bs_cbs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/ssl/bs_cbs.c b/lib/libssl/src/ssl/bs_cbs.c
index 81731772496..ea31cfc5300 100644
--- a/lib/libssl/src/ssl/bs_cbs.c
+++ b/lib/libssl/src/ssl/bs_cbs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bs_cbs.c,v 1.14 2015/06/19 00:23:36 doug Exp $ */
+/* $OpenBSD: bs_cbs.c,v 1.15 2015/06/20 01:21:51 doug Exp $ */
/*
* Copyright (c) 2014, Google Inc.
*
@@ -127,7 +127,7 @@ CBS_mem_equal(const CBS *cbs, const uint8_t *data, size_t len)
if (len != cbs->len)
return 0;
- return CRYPTO_memcmp(cbs->data, data, len) == 0;
+ return timingsafe_memcmp(cbs->data, data, len) == 0;
}
static int