From f6119b76d73b9cdff3cbfd902675a36bcacbcd48 Mon Sep 17 00:00:00 2001 From: Marius Halden Date: Sun, 8 Nov 2015 08:58:37 +0100 Subject: Start adding ssl support --- irc.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'irc.h') diff --git a/irc.h b/irc.h index 5ce7b07d..26e0c0a3 100644 --- a/irc.h +++ b/irc.h @@ -26,6 +26,10 @@ #ifndef _IRC_H #define _IRC_H +//#ifdef WITH_GNUTLS +# include +//#endif + #define IRC_MAX_LINE 512 #define IRC_MAX_ARGS 16 @@ -88,6 +92,13 @@ typedef struct irc { struct irc_user *root; struct irc_user *user; +//#ifdef WITH_GNUTLS + int ssl; + char *certfp; + + gnutls_session_t ssl_session; +//#endif + char *password; /* HACK: Used to save the user's password, but before logging in, this may contain a password we should send to identify after USER/NICK are received. */ -- cgit v1.2.3