aboutsummaryrefslogtreecommitdiffstats
path: root/irc.h
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2015-11-08 08:58:37 +0100
committerMarius Halden <marius.h@lden.org>2016-05-07 14:26:17 +0200
commitf6119b76d73b9cdff3cbfd902675a36bcacbcd48 (patch)
tree6c6f1581fd53a5b3094bfdc46838c2c893760a20 /irc.h
parentf0ff36f558329d096526004d4d912973bafd3904 (diff)
Start adding ssl support
Diffstat (limited to 'irc.h')
-rw-r--r--irc.h11
1 files changed, 11 insertions, 0 deletions
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 <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. */