From: Timo Sirainen Date: Thu, 19 Dec 2024 12:36:04 +0000 (+0200) Subject: lib-ssl-iostream: Change openssl_iostream_load_key() to be static X-Git-Tag: 2.4.1~342 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c56162679088503341216bc3d3bbaa9dcc2246b;p=thirdparty%2Fdovecot%2Fcore.git lib-ssl-iostream: Change openssl_iostream_load_key() to be static --- diff --git a/src/lib-ssl-iostream/iostream-openssl-context.c b/src/lib-ssl-iostream/iostream-openssl-context.c index 13b04e1549..49d5194a15 100644 --- a/src/lib-ssl-iostream/iostream-openssl-context.c +++ b/src/lib-ssl-iostream/iostream-openssl-context.c @@ -61,9 +61,10 @@ pem_password_callback(char *buf, int size, int rwflag ATTR_UNUSED, return strlen(buf); } -int openssl_iostream_load_key(const struct ssl_iostream_cert *set, - const char *set_name, - EVP_PKEY **pkey_r, const char **error_r) +static int +openssl_iostream_load_key(const struct ssl_iostream_cert *set, + const char *set_name, + EVP_PKEY **pkey_r, const char **error_r) { struct ssl_iostream_password_context ctx; EVP_PKEY *pkey; diff --git a/src/lib-ssl-iostream/iostream-openssl.h b/src/lib-ssl-iostream/iostream-openssl.h index 7ee58734e7..eb2b57da65 100644 --- a/src/lib-ssl-iostream/iostream-openssl.h +++ b/src/lib-ssl-iostream/iostream-openssl.h @@ -99,9 +99,6 @@ void openssl_iostream_context_ref(struct ssl_iostream_context *ctx); void openssl_iostream_context_unref(struct ssl_iostream_context *ctx); void openssl_iostream_global_deinit(void); -int openssl_iostream_load_key(const struct ssl_iostream_cert *set, - const char *set_name, - EVP_PKEY **pkey_r, const char **error_r); bool openssl_cert_match_name(SSL *ssl, const char *verify_name, const char **reason_r); #define OPENSSL_ALL_PROTOCOL_OPTIONS \