diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2017-03-31 22:30:58 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2017-04-03 23:47:22 +0100 |
commit | 86135bedd52124aa8410847169f7a25c055b3bec (patch) | |
tree | eadba2b43821e9985fe9c5fa1e7f9e3809646600 | |
parent | 5969a2dd2cce3ee4f35cc256256d9c8119080e98 (diff) | |
download | openssl-86135bedd52124aa8410847169f7a25c055b3bec.tar.gz |
Constify SSL_dup_CA_list()
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3015)
-rw-r--r-- | include/openssl/ssl.h | 2 | ||||
-rw-r--r-- | ssl/ssl_cert.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index 9a98d87d21..5ebd9979eb 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -1743,7 +1743,7 @@ __owur long SSL_get_default_timeout(const SSL *s); #endif __owur char *SSL_CIPHER_description(const SSL_CIPHER *, char *buf, int size); -__owur STACK_OF(X509_NAME) *SSL_dup_CA_list(STACK_OF(X509_NAME) *sk); +__owur STACK_OF(X509_NAME) *SSL_dup_CA_list(const STACK_OF(X509_NAME) *sk); __owur SSL *SSL_dup(SSL *ssl); diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index 95dde8517d..a4e7977012 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -466,7 +466,7 @@ static void set0_CA_list(STACK_OF(X509_NAME) **ca_list, *ca_list = name_list; } -STACK_OF(X509_NAME) *SSL_dup_CA_list(STACK_OF(X509_NAME) *sk) +STACK_OF(X509_NAME) *SSL_dup_CA_list(const STACK_OF(X509_NAME) *sk) { int i; STACK_OF(X509_NAME) *ret; |