]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-ssl-iostream: Change openssl_iostream_load_key() to be static
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 19 Dec 2024 12:36:04 +0000 (14:36 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 17 Jan 2025 08:40:01 +0000 (10:40 +0200)
src/lib-ssl-iostream/iostream-openssl-context.c
src/lib-ssl-iostream/iostream-openssl.h

index 13b04e1549ab815048d22a73fe0c0379f777b6ed..49d5194a1582e3d22a9e41f688ed04478bb6e239 100644 (file)
@@ -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;
index 7ee58734e74e96c10c941129b64737b59ae3e9dd..eb2b57da65d3aa7d3cbcbe5aaa24db8998e2c891 100644 (file)
@@ -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 \