diff options
| author | jsing <> | 2015-04-15 16:25:43 +0000 |
|---|---|---|
| committer | jsing <> | 2015-04-15 16:25:43 +0000 |
| commit | e7edd7d91d407bc4234ed91a83928c71e566b301 (patch) | |
| tree | 93f4dd5b408000ba8c70c2f3ed904827d01167b8 /src/lib/libssl/s3_srvr.c | |
| parent | ca0f4a12e39df9ce0b16a4185f61eb312d893636 (diff) | |
| download | openbsd-e7edd7d91d407bc4234ed91a83928c71e566b301.tar.gz openbsd-e7edd7d91d407bc4234ed91a83928c71e566b301.tar.bz2 openbsd-e7edd7d91d407bc4234ed91a83928c71e566b301.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 '')
| -rw-r--r-- | src/lib/libssl/s3_srvr.c | 8 |
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 | ||
