SSL: add const for *get_verify_mode to match openSSL

This commit is contained in:
Elms 2021-01-25 10:37:50 -08:00
parent a2917ae29c
commit 234bf0c209
2 changed files with 4 additions and 4 deletions

View File

@ -45681,7 +45681,7 @@ int wolfSSL_SESSION_print(WOLFSSL_BIO *bp, const WOLFSSL_SESSION *x)
|| defined(WOLFSSL_MYSQL_COMPATIBLE) || defined(WOLFSSL_NGINX)
/* TODO: Doesn't currently track SSL_VERIFY_CLIENT_ONCE */
int wolfSSL_get_verify_mode(WOLFSSL* ssl) {
int wolfSSL_get_verify_mode(const WOLFSSL* ssl) {
int mode = 0;
WOLFSSL_ENTER("wolfSSL_get_verify_mode");
@ -45708,7 +45708,7 @@ int wolfSSL_get_verify_mode(WOLFSSL* ssl) {
return mode;
}
int wolfSSL_CTX_get_verify_mode(WOLFSSL_CTX* ctx)
int wolfSSL_CTX_get_verify_mode(const WOLFSSL_CTX* ctx)
{
int mode = 0;
WOLFSSL_ENTER("wolfSSL_CTX_get_verify_mode");

View File

@ -3834,8 +3834,8 @@ WOLFSSL_API int wolfSSL_set1_curves_list(WOLFSSL* ssl, const char* names);
defined(HAVE_STUNNEL) || defined(WOLFSSL_MYSQL_COMPATIBLE) || \
defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY)
WOLFSSL_API int wolfSSL_get_verify_mode(WOLFSSL* ssl);
WOLFSSL_API int wolfSSL_CTX_get_verify_mode(WOLFSSL_CTX* ctx);
WOLFSSL_API int wolfSSL_get_verify_mode(const WOLFSSL* ssl);
WOLFSSL_API int wolfSSL_CTX_get_verify_mode(const WOLFSSL_CTX* ctx);
#endif