29 #ifdef COMPILE_SSL_SUPPORT
38 #ifdef DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER
39 #undef DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER
40 #define DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER
43 #include <openssl/ssl.h>
48 KviSSLCertificate(X509 * x509);
63 void extractSubject();
65 void extractPubKeyInfo();
66 void extractSerialNumber();
67 void extractSignature();
70 int getFingerprint(
unsigned char * bufferData,
unsigned int * bufferLen,
const char * digestName);
73 void setX509(X509 * x509);
74 char * getX509Base64();
76 const char * signatureType() {
return m_szSignatureType.ptr(); };
77 const char * signatureContents() {
return m_szSignatureContents.ptr(); };
79 const char * subjectCountry() {
return dictEntry(m_pSubject,
"C"); };
80 const char * subjectStateOrProvince() {
return dictEntry(m_pSubject,
"ST"); };
81 const char * subjectLocality() {
return dictEntry(m_pSubject,
"L"); };
82 const char * subjectOrganization() {
return dictEntry(m_pSubject,
"O"); };
83 const char * subjectOrganizationalUnit() {
return dictEntry(m_pSubject,
"OU"); };
84 const char * subjectCommonName() {
return dictEntry(m_pSubject,
"CN"); };
86 const char * issuerCountry() {
return dictEntry(m_pIssuer,
"C"); };
87 const char * issuerStateOrProvince() {
return dictEntry(m_pIssuer,
"ST"); };
88 const char * issuerLocality() {
return dictEntry(m_pIssuer,
"L"); };
89 const char * issuerOrganization() {
return dictEntry(m_pIssuer,
"O"); };
90 const char * issuerOrganizationalUnit() {
return dictEntry(m_pIssuer,
"OU"); };
91 const char * issuerCommonName() {
return dictEntry(m_pIssuer,
"CN"); };
93 int publicKeyBits() {
return m_iPubKeyBits; };
94 const char * publicKeyType() {
return m_szPubKeyType.ptr(); };
96 int serialNumber() {
return m_iSerialNumber; };
98 int version() {
return m_iVersion; };
100 bool fingerprintIsValid();
101 int fingerprintDigestId();
102 const char * fingerprintDigestStr();
103 const char * fingerprintContents(QString digestName =
"");
105 #ifdef COMPILE_ON_WINDOWS
111 void *
operator new(
size_t tSize);
112 void operator delete(
void *
p);
119 #if OPENSSL_VERSION_NUMBER >= 0x10000000L
120 KviSSLCipherInfo(
const SSL_CIPHER *
c,
const SSL *
s);
122 KviSSLCipherInfo(SSL_CIPHER *
c, SSL *
s);
134 const char *
name() {
return m_szName.ptr(); };
135 const char * description() {
return m_szDescription.ptr(); };
136 int bits() {
return m_iNumBits; };
137 int bitsUsed() {
return m_iNumBitsUsed; };
138 const char *
version() {
return m_szVersion.ptr(); };
139 #ifdef COMPILE_ON_WINDOWS
145 void *
operator new(
size_t tSize);
146 void operator delete(
void *
p);
187 static void globalInit();
188 static void globalDestroy();
189 static void globalSSLInit();
190 static void globalSSLDestroy();
194 bool initContext(KviSSL::Method
m);
197 KviSSL::Result accept();
198 int read(
char * buffer,
int len);
199 int write(
const char * buffer,
int len);
201 unsigned long getLastError(
bool bPeek =
false);
202 bool getLastErrorString(
KviCString & buffer,
bool bPeek =
false);
204 KviSSL::Result getProtocolError(
int ret);
205 KviSSLCertificate * getPeerCertificate();
206 KviSSLCertificate * getLocalCertificate();
207 KviSSLCipherInfo * getCurrentCipherInfo();
208 KviSSL::Result useCertificateFile(QString cert, QString pass);
209 KviSSL::Result usePrivateKeyFile(QString key, QString pass);
210 #ifdef COMPILE_ON_WINDOWS
216 void *
operator new(
size_t tSize);
217 void operator delete(
void *
p);
220 KviSSL::Result connectOrAcceptError(
int ret);
223 #endif //COMPILE_SSL_SUPPORT
int kvi_socket_t
Definition: kvi_sockettype.h:40
Definition: KviCString.h:105
connect(m_pFtp, SIGNAL(commandFinished(int, bool)), this, SLOT(slotCommandFinished(int, bool)))
char s char s char s s s s s char char c s *s c s s s d c s *s d c d d d d c
Definition: KviIrcNumericCodes.h:391
#define m
Definition: detector.cpp:77
Definition: KviError.h:97
Definition: KviError.h:50
char s char s s
Definition: KviIrcNumericCodes.h:391
QHashIterator< int, QFile * > t(getDict)
QString version()
Definition: KviRuntimeInfo.cpp:671
QString name()
Definition: KviRuntimeInfo.cpp:655
A fast pointer hash table implementation.
Definition: KviPointerHashTable.h:391
This file contains compile time settings.
Definition: KviError.h:162
#define p
Definition: detector.cpp:80
#define KVILIB_API
Definition: kvi_settings.h:125
Definition: KviError.h:49