summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_err.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-09-27 11:01:05 +0000
committerjsing <jsing@openbsd.org>2014-09-27 11:01:05 +0000
commit77897655637d9d7aa7168880fa25902d6de4a8ec (patch)
tree1f8f8ad11c27a4669552532904c258daf4027d2a /lib/libssl/ssl_err.c
parentretire Accoom Networks Artery T1/E1 drive; ok claudio (diff)
downloadwireguard-openbsd-77897655637d9d7aa7168880fa25902d6de4a8ec.tar.xz
wireguard-openbsd-77897655637d9d7aa7168880fa25902d6de4a8ec.zip
Check that the specified curve is one of the client preferences.
Based on OpenSSL. ok miod@
Diffstat (limited to 'lib/libssl/ssl_err.c')
-rw-r--r--lib/libssl/ssl_err.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/ssl_err.c b/lib/libssl/ssl_err.c
index 9abd28bf880..33cd5f2f96f 100644
--- a/lib/libssl/ssl_err.c
+++ b/lib/libssl/ssl_err.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_err.c,v 1.25 2014/06/13 11:52:03 jsing Exp $ */
+/* $OpenBSD: ssl_err.c,v 1.26 2014/09/27 11:01:06 jsing Exp $ */
/* ====================================================================
* Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved.
*
@@ -584,6 +584,7 @@ static ERR_STRING_DATA SSL_str_reasons[]= {
{ERR_REASON(SSL_R_USE_SRTP_NOT_NEGOTIATED), "use srtp not negotiated"},
{ERR_REASON(SSL_R_WRITE_BIO_NOT_SET) , "write bio not set"},
{ERR_REASON(SSL_R_WRONG_CIPHER_RETURNED) , "wrong cipher returned"},
+ {ERR_REASON(SSL_R_WRONG_CURVE) , "wrong curve"},
{ERR_REASON(SSL_R_WRONG_MESSAGE_TYPE) , "wrong message type"},
{ERR_REASON(SSL_R_WRONG_NUMBER_OF_KEY_BITS), "wrong number of key bits"},
{ERR_REASON(SSL_R_WRONG_SIGNATURE_LENGTH), "wrong signature length"},