2 * ngIRCd -- The Next Generation IRC Daemon
10 * SSL related definitions
15 #include <openssl/ssl.h>
16 #if OPENSSL_VERSION_NUMBER < 0x10100000L
17 #define OpenSSL_version SSLeay_version
18 #define OPENSSL_VERSION SSLEAY_VERSION
23 #include <gnutls/gnutls.h>
24 #ifndef LIBGNUTLS_VERSION_MAJOR
25 #define gnutls_certificate_credentials_t gnutls_certificate_credentials
26 #define gnutls_cipher_algorithm_t gnutls_cipher_algorithm
27 #define gnutls_datum_t gnutls_datum
28 #define gnutls_dh_params_t gnutls_dh_params
29 #define gnutls_session_t gnutls_session
30 #define gnutls_transport_ptr_t gnutls_transport_ptr
35 struct ConnSSL_State {
40 gnutls_session_t gnutls_session;
41 void *cookie; /* pointer to server configuration structure
42 (for outgoing connections), or NULL. */
49 GLOBAL bool ConnSSL_InitLibrary PARAMS((void));
51 #endif /* conf_ssl_h */