diff options
author | jsing <> | 2015-04-15 16:25:43 +0000 |
---|---|---|
committer | jsing <> | 2015-04-15 16:25:43 +0000 |
commit | 4392117575862b75cab68af43d324941bcc50add (patch) | |
tree | 93f4dd5b408000ba8c70c2f3ed904827d01167b8 /src/lib/libssl/ssl_locl.h | |
parent | 7948fa34e2e3a2bdbdec9153ddb86a20ddb4944a (diff) | |
download | openbsd-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 '')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index cb1da576f4..7b3ecdf665 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_locl.h,v 1.89 2015/03/27 12:29:54 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.90 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 | * |
@@ -570,7 +570,7 @@ DECLARE_OBJ_BSEARCH_GLOBAL_CMP_FN(SSL_CIPHER, SSL_CIPHER, ssl_cipher_id); | |||
570 | int ssl_cipher_ptr_id_cmp(const SSL_CIPHER * const *ap, | 570 | int ssl_cipher_ptr_id_cmp(const SSL_CIPHER * const *ap, |
571 | const SSL_CIPHER * const *bp); | 571 | const SSL_CIPHER * const *bp); |
572 | STACK_OF(SSL_CIPHER) *ssl_bytes_to_cipher_list(SSL *s, unsigned char *p, | 572 | STACK_OF(SSL_CIPHER) *ssl_bytes_to_cipher_list(SSL *s, unsigned char *p, |
573 | int num, STACK_OF(SSL_CIPHER) **skp); | 573 | int num); |
574 | int ssl_cipher_list_to_bytes(SSL *s, STACK_OF(SSL_CIPHER) *sk, | 574 | int ssl_cipher_list_to_bytes(SSL *s, STACK_OF(SSL_CIPHER) *sk, |
575 | unsigned char *p); | 575 | unsigned char *p); |
576 | STACK_OF(SSL_CIPHER) *ssl_create_cipher_list(const SSL_METHOD *meth, | 576 | STACK_OF(SSL_CIPHER) *ssl_create_cipher_list(const SSL_METHOD *meth, |