]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-dcrypt: Add static keyword to ECDSA_SIG_get0
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 3 Sep 2019 08:58:18 +0000 (11:58 +0300)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 23 Sep 2019 05:48:00 +0000 (08:48 +0300)
Otherwise compilers complain as it's not declared anywhere.

src/lib-dcrypt/dcrypt-openssl.c

index f60022f9ca2c259dece5f2cda5994472b0341f7c..251c7cfe0ffab0f974fa98ce71a500bf117abc9d 100644 (file)
@@ -3174,7 +3174,7 @@ dcrypt_openssl_digest(const char *algorithm, const void *data, size_t data_len,
 }
 
 #ifndef HAVE_ECDSA_SIG_GET0
-void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps)
+static void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps)
 {
        i_assert(sig != NULL);
        *pr = sig->r;