summaryrefslogtreecommitdiff
path: root/lib/libssl/t1_enc.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2017-03-18 13:01:56 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2017-03-18 13:01:56 +0000
commit3b8626b43d34373f3d37e7cca9304fba96258edb (patch)
treeeedd1c525976a28e57fc004a29a55a8db9fcc7b0 /lib/libssl/t1_enc.c
parent1ff69ba4fd384ce6ea19d5e153588364e98a6b6a (diff)
t1_enc.c
Diffstat (limited to 'lib/libssl/t1_enc.c')
-rw-r--r--lib/libssl/t1_enc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libssl/t1_enc.c b/lib/libssl/t1_enc.c
index 96b3aa6ca85..7ebfe65ff64 100644
--- a/lib/libssl/t1_enc.c
+++ b/lib/libssl/t1_enc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: t1_enc.c,v 1.103 2017/03/18 12:58:18 jsing Exp $ */
+/* $OpenBSD: t1_enc.c,v 1.104 2017/03/18 13:01:55 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1023,7 +1023,6 @@ int
tls1_final_finish_mac(SSL *s, const char *str, int slen, unsigned char *out)
{
unsigned char buf1[EVP_MAX_MD_SIZE];
- unsigned char buf2[12];
size_t hlen;
if (!tls1_handshake_hash_value(s, buf1, sizeof(buf1), &hlen))
@@ -1037,7 +1036,7 @@ tls1_final_finish_mac(SSL *s, const char *str, int slen, unsigned char *out)
out, 12))
return 0;
- return sizeof(buf2);
+ return 12;
}
int