]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conf-ssl.h
Don't send nick name as default PART reason
[ngircd-alex.git] / src / ngircd / conf-ssl.h
index cdb996828c4b0e68dd8e0f8ce01823e254bda953..c23737979a21e7043d1eed7ed488524b83742112 100644 (file)
@@ -1,11 +1,15 @@
 /*
  * 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 <openssl/ssl.h>
@@ -29,19 +33,16 @@ 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. */
 #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 */