From 949d763498619828bd94c47f1e251aaa5fbd6bb2 Mon Sep 17 00:00:00 2001 From: zodiac Date: Wed, 21 Jan 2009 23:35:20 +0000 Subject: [PATCH] Unexport sslGenerateCertificate() which is only needed by ssl.c internally. git-svn-id: https://shellinabox.googlecode.com/svn/trunk@47 0da03de8-d603-11dd-86c2-0f8696b7b6f9 --- libhttp/ssl.c | 3 ++- libhttp/ssl.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) 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);