X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fconn.h;h=c642541f07ce486b712f5a3b0e719a438d9ea8da;hp=e42a2ae6a7ac1c1466ade3a8124650a489e61715;hb=646a97de5fea240f8e06e1b38aa9e72ea50e0c8c;hpb=01b62202b2caa1b8161e62f149a9d6f705713869 diff --git a/src/ngircd/conn.h b/src/ngircd/conn.h index e42a2ae6..c642541f 100644 --- a/src/ngircd/conn.h +++ b/src/ngircd/conn.h @@ -54,6 +54,10 @@ typedef int CONN_ID; #include "tool.h" #include "ng_ipaddr.h" +#ifdef ICONV +# include +#endif + #ifdef ZLIB #include typedef struct _ZipData @@ -95,6 +99,10 @@ typedef struct _Connection #ifndef STRICT_RFC long auth_ping; /** PING response expected on login */ #endif +#ifdef ICONV + iconv_t iconv_from; /** iconv: convert from client to server */ + iconv_t iconv_to; /** iconv: convert from server to client */ +#endif } CONNECTION; GLOBAL CONNECTION *My_Connections; @@ -131,13 +139,12 @@ GLOBAL CONN_ID Conn_GetFromProc PARAMS((int fd)); GLOBAL CLIENT* Conn_GetClient PARAMS((CONN_ID i)); GLOBAL PROC_STAT* Conn_GetProcStat PARAMS((CONN_ID i)); +GLOBAL char *Conn_GetCertFp PARAMS((CONN_ID Idx)); +GLOBAL bool Conn_SetCertFp PARAMS((CONN_ID Idx, const char *fingerprint)); +GLOBAL bool Conn_UsesSSL PARAMS((CONN_ID Idx)); + #ifdef SSL_SUPPORT GLOBAL bool Conn_GetCipherInfo PARAMS((CONN_ID Idx, char *buf, size_t len)); -GLOBAL bool Conn_UsesSSL PARAMS((CONN_ID Idx)); -#else -static inline bool -Conn_UsesSSL(UNUSED CONN_ID Idx) -{ return false; } #endif GLOBAL const char *Conn_GetIPAInfo PARAMS((CONN_ID Idx));