diff --git a/libhttp/ssl.c b/libhttp/ssl.c index 61a1d0c..b0987e3 100644 --- a/libhttp/ssl.c +++ b/libhttp/ssl.c @@ -270,7 +270,8 @@ int serverSupportsSSL(void) { #endif } -void sslGenerateCertificate(const char *certificate, const char *serverName) { +static void sslGenerateCertificate(const char *certificate, + const char *serverName) { #if defined(HAVE_OPENSSL) debug("Auto-generating missing certificate \"%s\" for \"%s\"", certificate, serverName); diff --git a/libhttp/ssl.h b/libhttp/ssl.h index e273a65..2ba43cf 100644 --- a/libhttp/ssl.h +++ b/libhttp/ssl.h @@ -178,7 +178,6 @@ struct SSLSupport *newSSL(); void initSSL(struct SSLSupport *ssl); void destroySSL(struct SSLSupport *ssl); void deleteSSL(struct SSLSupport *ssl); -void sslGenerateCertificate(const char *certificate, const char *serverName); void sslSetCertificate(struct SSLSupport *ssl, const char *filename, int autoGenerateMissing); void sslSetCertificateFd(struct SSLSupport *ssl, int fd);