diff options
author | jsing <> | 2017-10-10 16:51:38 +0000 |
---|---|---|
committer | jsing <> | 2017-10-10 16:51:38 +0000 |
commit | 098764416bf22cf0022a14e54c917a7d274d5907 (patch) | |
tree | 41440fc4cda10bdbc058059722ec231878a235ef /src/lib/libssl/ssl_locl.h | |
parent | 9541ce793a71add79fbe8d7b3d5b3fae5015bf53 (diff) | |
download | openbsd-098764416bf22cf0022a14e54c917a7d274d5907.tar.gz openbsd-098764416bf22cf0022a14e54c917a7d274d5907.tar.bz2 openbsd-098764416bf22cf0022a14e54c917a7d274d5907.zip |
Make ssl_bytes_to_cipher_list() take a CBS, rather than a pointer and
length, since the caller has already been converted to CBS. A small amount
of additional clean up whilst here.
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index eed0803a85..9d9f9c3e41 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.195 2017/10/10 15:13:26 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.196 2017/10/10 16:51:38 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 | * |
@@ -1064,8 +1064,7 @@ int ssl_cipher_id_cmp(const SSL_CIPHER *a, const SSL_CIPHER *b); | |||
1064 | SSL_CIPHER *OBJ_bsearch_ssl_cipher_id(SSL_CIPHER *key, SSL_CIPHER const *base, int num); | 1064 | SSL_CIPHER *OBJ_bsearch_ssl_cipher_id(SSL_CIPHER *key, SSL_CIPHER const *base, int num); |
1065 | int ssl_cipher_ptr_id_cmp(const SSL_CIPHER * const *ap, | 1065 | int ssl_cipher_ptr_id_cmp(const SSL_CIPHER * const *ap, |
1066 | const SSL_CIPHER * const *bp); | 1066 | const SSL_CIPHER * const *bp); |
1067 | STACK_OF(SSL_CIPHER) *ssl_bytes_to_cipher_list(SSL *s, const unsigned char *p, | 1067 | STACK_OF(SSL_CIPHER) *ssl_bytes_to_cipher_list(SSL *s, CBS *cbs); |
1068 | int num); | ||
1069 | int ssl_cipher_list_to_bytes(SSL *s, STACK_OF(SSL_CIPHER) *sk, | 1068 | int ssl_cipher_list_to_bytes(SSL *s, STACK_OF(SSL_CIPHER) *sk, |
1070 | unsigned char *p, size_t maxlen, size_t *outlen); | 1069 | unsigned char *p, size_t maxlen, size_t *outlen); |
1071 | STACK_OF(SSL_CIPHER) *ssl_create_cipher_list(const SSL_METHOD *meth, | 1070 | STACK_OF(SSL_CIPHER) *ssl_create_cipher_list(const SSL_METHOD *meth, |