diff options
| author | Marius Halden <marius.h@lden.org> | 2015-11-08 08:58:37 +0100 |
|---|---|---|
| committer | Marius Halden <marius.h@lden.org> | 2016-05-07 14:26:17 +0200 |
| commit | f6119b76d73b9cdff3cbfd902675a36bcacbcd48 (patch) | |
| tree | 6c6f1581fd53a5b3094bfdc46838c2c893760a20 /irc.h | |
| parent | f0ff36f558329d096526004d4d912973bafd3904 (diff) | |
Start adding ssl support
Diffstat (limited to 'irc.h')
| -rw-r--r-- | irc.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -26,6 +26,10 @@ #ifndef _IRC_H #define _IRC_H +//#ifdef WITH_GNUTLS +# include <gnutls/gnutls.h> +//#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. */ |
