From 8d157850f4e9d67bbe85b4b9018000c20f5400db Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 11 Dec 2019 13:05:24 +0100 Subject: [PATCH] Declare generate_webpage_certificate() static --- ssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl.c b/ssl.c index ef4abc68..ca9474f8 100644 --- a/ssl.c +++ b/ssl.c @@ -107,7 +107,7 @@ typedef struct { char *key_file_path; /* filename of the key file */ } key_options; -extern int generate_webpage_certificate(struct client_state *csp); +static int generate_webpage_certificate(struct client_state *csp); static char *make_certs_path(const char *conf_dir, const char *file_name, const char *suffix); static int file_exists(const char *path); static int host_to_hash(struct client_state *csp); @@ -1203,7 +1203,7 @@ exit: * >0 => Length of created certificate. * *********************************************************************/ -extern int generate_webpage_certificate(struct client_state *csp) +static int generate_webpage_certificate(struct client_state *csp) { mbedtls_x509_crt issuer_cert; mbedtls_pk_context loaded_issuer_key, loaded_subject_key; -- 2.39.2