X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fconf-ssl.h;h=a8896a1f634db1fd511a9129442e2d50b3b05420;hb=4b7e8db418340576c95f1edad8470b66d6fe886d;hp=428bcf45570c1ae0a8192de5b33148b7af20b1ae;hpb=1a2bdd9e4cb31125792482b8b6d8bfcf56cd115a;p=ngircd-alex.git diff --git a/src/ngircd/conf-ssl.h b/src/ngircd/conf-ssl.h index 428bcf45..a8896a1f 100644 --- a/src/ngircd/conf-ssl.h +++ b/src/ngircd/conf-ssl.h @@ -13,6 +13,10 @@ #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 @@ -33,15 +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; }; #endif -bool ConnSSL_InitLibrary(void); +GLOBAL bool ConnSSL_InitLibrary PARAMS((void)); #endif /* conf_ssl_h */