diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-08-17 13:50:48 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-08-17 13:59:04 +0100 |
commit | 8900f3e3982a016a25ad87a2270446e780038ec9 (patch) | |
tree | 686da17998e72e5a54c75bb511459e55bc5344f9 /ssl | |
parent | 5e6089f0eba7b12f21b3237c57f2bd56049eb1ae (diff) | |
download | openssl-8900f3e3982a016a25ad87a2270446e780038ec9.tar.gz |
Convert X509* functions to use const getters
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_locl.h | 2 | ||||
-rw-r--r-- | ssl/statem/statem_lib.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h index 46161a8dfd..a555f09822 100644 --- a/ssl/ssl_locl.h +++ b/ssl/ssl_locl.h @@ -1858,7 +1858,7 @@ __owur CERT_PKEY *ssl_get_server_send_pkey(SSL *s); __owur int ssl_get_server_cert_serverinfo(SSL *s, const unsigned char **serverinfo, size_t *serverinfo_length); __owur EVP_PKEY *ssl_get_sign_pkey(SSL *s, const SSL_CIPHER *c, const EVP_MD **pmd); -__owur int ssl_cert_type(X509 *x, EVP_PKEY *pkey); +__owur int ssl_cert_type(X509 *x, const EVP_PKEY *pkey); void ssl_set_masks(SSL *s); __owur STACK_OF(SSL_CIPHER) *ssl_get_ciphers_by_id(SSL *s); __owur int ssl_verify_alarm_type(long type); diff --git a/ssl/statem/statem_lib.c b/ssl/statem/statem_lib.c index ae986f5c63..87a76cd6e5 100644 --- a/ssl/statem/statem_lib.c +++ b/ssl/statem/statem_lib.c @@ -520,7 +520,7 @@ int tls_get_message_body(SSL *s, unsigned long *len) return 1; } -int ssl_cert_type(X509 *x, EVP_PKEY *pk) +int ssl_cert_type(X509 *x, const EVP_PKEY *pk) { if (pk == NULL && (pk = X509_get0_pubkey(x)) == NULL) |