From 973ae30e7c4f7a1afb385dd3d8eeea178f981445 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Mon, 8 Jul 2024 13:24:39 +0200 Subject: fix deprecated prototypes --- src/tls_remote.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tls_remote.c') diff --git a/src/tls_remote.c b/src/tls_remote.c index dde4dff..3ae1a94 100644 --- a/src/tls_remote.c +++ b/src/tls_remote.c @@ -129,7 +129,7 @@ int tls_checkcrl(SSL *ssl) // not implemented yet return 0; } -int dig_ascii(char *digascii, const char *digest, const int len) +static int dig_ascii(char *digascii, const char *digest, const int len) { static const char hextab[] = "0123456789abcdef"; int j; @@ -149,7 +149,7 @@ int dig_ascii(char *digascii, const char *digest, const int len) Subjects keys are restricted to 2048 byte in size. Return codes: 1: sucess, 0: failed. */ -int X509_pkey_digest(const X509 *cert, const EVP_MD *type, unsigned char *md, unsigned int *dlen) +static int X509_pkey_digest(const X509 *cert, const EVP_MD *type, unsigned char *md, unsigned int *dlen) { unsigned int len = 0; unsigned int size = 2048; -- cgit v1.2.3