mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
fix compile errors
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@87 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
#include <sstream>
|
||||
#ifdef HAVE_LIBSSL
|
||||
#include <openssl/ssl.h>
|
||||
#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 );
|
||||
|
||||
Reference in New Issue
Block a user