summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_srvr.c
diff options
context:
space:
mode:
authorjsing <>2015-04-15 16:25:43 +0000
committerjsing <>2015-04-15 16:25:43 +0000
commit4392117575862b75cab68af43d324941bcc50add (patch)
tree93f4dd5b408000ba8c70c2f3ed904827d01167b8 /src/lib/libssl/s3_srvr.c
parent7948fa34e2e3a2bdbdec9153ddb86a20ddb4944a (diff)
downloadopenbsd-4392117575862b75cab68af43d324941bcc50add.tar.gz
openbsd-4392117575862b75cab68af43d324941bcc50add.tar.bz2
openbsd-4392117575862b75cab68af43d324941bcc50add.zip
Clean up the ssl_bytes_to_cipher_list() API - rather than having the
ability to pass or not pass a STACK_OF(SSL_CIPHER) *, which is then either zeroed or if NULL a new one is allocated, always allocate one and return it directly. Inspired by simliar changes in BoringSSL. ok beck@ doug@
Diffstat (limited to 'src/lib/libssl/s3_srvr.c')
-rw-r--r--src/lib/libssl/s3_srvr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libssl/s3_srvr.c b/src/lib/libssl/s3_srvr.c
index ce48809f65..5248cc864c 100644
--- a/src/lib/libssl/s3_srvr.c
+++ b/src/lib/libssl/s3_srvr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s3_srvr.c,v 1.101 2015/03/27 12:29:54 jsing Exp $ */ 1/* $OpenBSD: s3_srvr.c,v 1.102 2015/04/15 16:25:43 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -988,9 +988,9 @@ ssl3_get_client_hello(SSL *s)
988 } 988 }
989 if (p + i - d > n) 989 if (p + i - d > n)
990 goto truncated; 990 goto truncated;
991 if ((i > 0) && 991 if (i > 0) {
992 (ssl_bytes_to_cipher_list(s, p, i, &(ciphers)) == NULL)) { 992 if ((ciphers = ssl_bytes_to_cipher_list(s, p, i)) == NULL)
993 goto err; 993 goto err;
994 } 994 }
995 p += i; 995 p += i;
996 996