From 46daeeba2cdb0616a41f0d6a3cc5b0186bb492d3 Mon Sep 17 00:00:00 2001 From: imaginos Date: Sun, 3 Apr 2005 20:18:36 +0000 Subject: [PATCH] fix compile errors git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@87 726aef4b-f618-498e-8847-2d620e286838 --- Utils.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Utils.cpp b/Utils.cpp index 48c1b904..d4a27042 100644 --- a/Utils.cpp +++ b/Utils.cpp @@ -6,6 +6,10 @@ #include #include #include +#ifdef HAVE_LIBSSL +#include +#endif /* HAVE_LIBSSL */ + using std::stringstream; CUtils::CUtils() {} @@ -36,7 +40,7 @@ char *strcasestr(const char *big, const char *little) #endif /* __sun */ #ifdef HAVE_LIBSSL -void CUtils::GenerateCert( FILE *pOut, bool bEncPrivKey = false ) +void CUtils::GenerateCert( FILE *pOut, bool bEncPrivKey ) { RSA *pRSA = RSA_generate_key( 1024, 17, NULL, NULL ); PEM_write_RSAPrivateKey( pOut, pRSA, ( bEncPrivKey ? EVP_des_ede3_cbc() : NULL ), NULL, 0, NULL, NULL );