From f66e5a52bde076b10bb292f50e50bbec8cad3546 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Wed, 19 Jun 2024 10:53:59 +0200 Subject: [PATCH] wolfSSL_get_SSL_CTX: Make parameter const --- src/ssl.c | 2 +- wolfssl/ssl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index fde2addb1b..86466da375 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -20335,7 +20335,7 @@ int wolfSSL_version(WOLFSSL* ssl) return WOLFSSL_FAILURE; } -WOLFSSL_CTX* wolfSSL_get_SSL_CTX(WOLFSSL* ssl) +WOLFSSL_CTX* wolfSSL_get_SSL_CTX(const WOLFSSL* ssl) { WOLFSSL_ENTER("wolfSSL_get_SSL_CTX"); return ssl->ctx; diff --git a/wolfssl/ssl.h b/wolfssl/ssl.h index d5efa358fd..d1a88bd5df 100644 --- a/wolfssl/ssl.h +++ b/wolfssl/ssl.h @@ -1153,7 +1153,7 @@ WOLFSSL_API int wolfSSL_CTX_set1_sigalgs_list(WOLFSSL_CTX* ctx, WOLFSSL_API int wolfSSL_set1_sigalgs_list(WOLFSSL* ssl, const char* list); #endif WOLFSSL_ABI WOLFSSL_API WOLFSSL* wolfSSL_new(WOLFSSL_CTX* ctx); -WOLFSSL_API WOLFSSL_CTX* wolfSSL_get_SSL_CTX(WOLFSSL* ssl); +WOLFSSL_API WOLFSSL_CTX* wolfSSL_get_SSL_CTX(const WOLFSSL* ssl); WOLFSSL_API WOLFSSL_X509_VERIFY_PARAM* wolfSSL_CTX_get0_param(WOLFSSL_CTX* ctx); WOLFSSL_API WOLFSSL_X509_VERIFY_PARAM* wolfSSL_get0_param(WOLFSSL* ssl); WOLFSSL_API int wolfSSL_CTX_set1_param(WOLFSSL_CTX* ctx, WOLFSSL_X509_VERIFY_PARAM *vpm);