X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Fngircd%2Fconf-ssl.h;h=a8896a1f634db1fd511a9129442e2d50b3b05420;hb=eead4a631feb4d3cb8d7fefb2b09207d771035ca;hp=cdb996828c4b0e68dd8e0f8ce01823e254bda953;hpb=596bc096b02ef94efe3d73bb747c6ab0368f63bf;p=ngircd.git diff --git a/src/ngircd/conf-ssl.h b/src/ngircd/conf-ssl.h index cdb99682..a8896a1f 100644 --- a/src/ngircd/conf-ssl.h +++ b/src/ngircd/conf-ssl.h @@ -1,14 +1,22 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * SSL defines. */ #ifndef conf_ssl_h #define conf_ssl_h +/** + * @file + * SSL related definitions + */ + #ifdef HAVE_LIBSSL #define SSL_SUPPORT #include +#if OPENSSL_VERSION_NUMBER < 0x10100000L +#define OpenSSL_version SSLeay_version +#define OPENSSL_VERSION SSLEAY_VERSION +#endif #endif #ifdef HAVE_LIBGNUTLS #define SSL_SUPPORT @@ -29,19 +37,17 @@ struct ConnSSL_State { SSL *ssl; #endif #ifdef HAVE_LIBGNUTLS - gnutls_session gnutls_session; + gnutls_session_t gnutls_session; void *cookie; /* pointer to server configuration structure (for outgoing connections), or NULL. */ + size_t x509_cred_idx; /* index of active x509 credential record */ #endif + char *fingerprint; }; -bool -ConnSSL_InitLibrary(void); -#else -static inline bool -ConnSSL_InitLibrary(void) -{ return true; } -#endif /* SSL_SUPPORT */ +#endif + +GLOBAL bool ConnSSL_InitLibrary PARAMS((void)); #endif /* conf_ssl_h */