summaryrefslogtreecommitdiffstats
path: root/lib/libssl/t1_enc.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2017-03-18 13:04:30 +0000
committerjsing <jsing@openbsd.org>2017-03-18 13:04:30 +0000
commit19f8f5e22a4dcb63d7f39c7aaa2826f3a7a09fc6 (patch)
treeead80454a19af59a9d07593309ebc0fab836a310 /lib/libssl/t1_enc.c
parentt1_enc.c (diff)
downloadwireguard-openbsd-19f8f5e22a4dcb63d7f39c7aaa2826f3a7a09fc6.tar.xz
wireguard-openbsd-19f8f5e22a4dcb63d7f39c7aaa2826f3a7a09fc6.zip
Fewer magic numbers.
Diffstat (limited to 'lib/libssl/t1_enc.c')
-rw-r--r--lib/libssl/t1_enc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/t1_enc.c b/lib/libssl/t1_enc.c
index 7ebfe65ff64..0c182d49a29 100644
--- a/lib/libssl/t1_enc.c
+++ b/lib/libssl/t1_enc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: t1_enc.c,v 1.104 2017/03/18 13:01:55 jsing Exp $ */
+/* $OpenBSD: t1_enc.c,v 1.105 2017/03/18 13:04:30 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1033,10 +1033,10 @@ tls1_final_finish_mac(SSL *s, const char *str, int slen, unsigned char *out)
if (!tls1_PRF(s, str, slen, buf1, hlen, NULL, 0, NULL, 0, NULL, 0,
s->session->master_key, s->session->master_key_length,
- out, 12))
+ out, TLS1_FINISH_MAC_LENGTH))
return 0;
- return 12;
+ return TLS1_FINISH_MAC_LENGTH;
}
int