mirror of
https://github.com/znc/znc.git
synced 2026-05-05 13:02:31 +02:00
Added ifdefs for HAVE_LIBSSL
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@536 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -621,6 +621,7 @@ CString CString::MD5() const {
|
||||
return (const char*) CMD5(*this);
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBSSL
|
||||
CString CString::Encrypt_n(const CString& sPass, const CString& sIvec) {
|
||||
CString sRet;
|
||||
sRet.Encrypt(sPass, sIvec);
|
||||
@@ -665,6 +666,7 @@ void CString::Crypt(const CString& sPass, bool bEncrypt, const CString& sIvec) {
|
||||
append((const char*) szBuff, uLen);
|
||||
free(szBuff);
|
||||
}
|
||||
#endif // HAVE_LIBSSL
|
||||
|
||||
CString CString::ToString(char c) { stringstream s; s << c; return s.str(); }
|
||||
CString CString::ToString(unsigned char c) { stringstream s; s << c; return s.str(); }
|
||||
|
||||
2
String.h
2
String.h
@@ -84,11 +84,13 @@ public:
|
||||
bool Base64Encode(unsigned int uWrap = 0);
|
||||
CString Base64Encode_n(unsigned int uWrap = 0) const;
|
||||
|
||||
#ifdef HAVE_LIBSSL
|
||||
CString Encrypt_n(const CString& sPass, const CString& sIvec = "");
|
||||
CString Decrypt_n(const CString& sPass, const CString& sIvec = "");
|
||||
void Encrypt(const CString& sPass, const CString& sIvec = "");
|
||||
void Decrypt(const CString& sPass, const CString& sIvec = "");
|
||||
void Crypt(const CString& sPass, bool bEncrypt, const CString& sIvec = "");
|
||||
#endif
|
||||
|
||||
static CString ToString(char c);
|
||||
static CString ToString(unsigned char c);
|
||||
|
||||
Reference in New Issue
Block a user