summaryrefslogtreecommitdiff
path: root/lib/libssl
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
commite3561b1dee34b63415e66d7b23fbc47a20782e5d (patch)
treebe2fe57e51ca56d71623d5dd313f18182f2ba25d /lib/libssl
parent979aeccfb35d967212350f51c2929fb8def6c5a9 (diff)
Replace internal call to CRYPTO_memcmp with timingsafe_memcmp.
Suggested by jsing@. ok jsing@ miod@
Diffstat (limited to 'lib/libssl')
-rw-r--r--lib/libssl/bs_cbs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/bs_cbs.c b/lib/libssl/bs_cbs.c
index 81731772496..ea31cfc5300 100644
--- a/lib/libssl/bs_cbs.c
+++ b/lib/libssl/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