summaryrefslogtreecommitdiffstats
path: root/jpake.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2010-07-16 05:58:37 +0200
committerDamien Miller <djm@mindrot.org>2010-07-16 05:58:37 +0200
commitea1651c98e1814f54c8d4b027b31f7de1c34989c (patch)
treea5d7bf134dc527c239db41dfe7185fefa87d798f /jpake.c
parent - djm@cvs.openbsd.org 2010/07/13 11:52:06 (diff)
downloadopenssh-ea1651c98e1814f54c8d4b027b31f7de1c34989c.tar.xz
openssh-ea1651c98e1814f54c8d4b027b31f7de1c34989c.zip
- djm@cvs.openbsd.org 2010/07/13 23:13:16
[auth-rsa.c channels.c jpake.c key.c misc.c misc.h monitor.c packet.c] [ssh-rsa.c] s/timing_safe_cmp/timingsafe_bcmp/g
Diffstat (limited to 'jpake.c')
-rw-r--r--jpake.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/jpake.c b/jpake.c
index 50cf5c82e..cdf65f509 100644
--- a/jpake.c
+++ b/jpake.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: jpake.c,v 1.3 2010/07/13 11:52:06 djm Exp $ */
+/* $OpenBSD: jpake.c,v 1.4 2010/07/13 23:13:16 djm Exp $ */
/*
* Copyright (c) 2008 Damien Miller. All rights reserved.
*
@@ -434,7 +434,7 @@ jpake_check_confirm(const BIGNUM *k,
if (peer_confirm_hash_len != expected_confirm_hash_len)
error("%s: confirmation length mismatch (my %u them %u)",
__func__, expected_confirm_hash_len, peer_confirm_hash_len);
- else if (timing_safe_cmp(peer_confirm_hash, expected_confirm_hash,
+ else if (timingsafe_bcmp(peer_confirm_hash, expected_confirm_hash,
expected_confirm_hash_len) == 0)
success = 1;
bzero(expected_confirm_hash, expected_confirm_hash_len);