mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
Constify ssl_cert_type()
Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
5ebd2fcbc7
commit
2e5ead831b
@ -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, const EVP_PKEY *pkey);
|
||||
__owur int ssl_cert_type(const 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);
|
||||
|
@ -520,7 +520,7 @@ int tls_get_message_body(SSL *s, unsigned long *len)
|
||||
return 1;
|
||||
}
|
||||
|
||||
int ssl_cert_type(X509 *x, const EVP_PKEY *pk)
|
||||
int ssl_cert_type(const X509 *x, const EVP_PKEY *pk)
|
||||
{
|
||||
if (pk == NULL &&
|
||||
(pk = X509_get0_pubkey(x)) == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user