Back to index

citadel  8.12
serv_crypto.h
Go to the documentation of this file.
00001 
00002 /*
00003  * Number of days for which self-signed certs are valid.
00004  */
00005 #define SIGN_DAYS    3650   /* Ten years */
00006 
00007 /* Shared Diffie-Hellman parameters */
00008 #define DH_P         "1A74527AEE4EE2568E85D4FB2E65E18C9394B9C80C42507D7A6A0DBE9A9A54B05A9A96800C34C7AA5297095B69C88901EEFD127F969DCA26A54C0E0B5C5473EBAEB00957D2633ECAE3835775425DE66C0DE6D024DBB17445E06E6B0C78415E589B8814F08531D02FD43778451E7685541079CFFB79EF0D26EFEEBBB69D1E80383"
00009 #define DH_G         "2"
00010 #define DH_L         1024
00011 #define CIT_CIPHERS  "ALL:RC4+RSA:+SSLv2:+TLSv1:!MD5:@STRENGTH"       /* see ciphers(1) */
00012 
00013 #ifdef HAVE_OPENSSL
00014 void destruct_ssl(void);
00015 void init_ssl(void);
00016 void client_write_ssl (const char *buf, int nbytes);
00017 int client_read_sslbuffer(StrBuf *buf, int timeout);
00018 int client_readline_sslbuffer(StrBuf *Target, StrBuf *Buffer, const char **Pos, int timeout);
00019 int client_read_sslblob(StrBuf *Target, long want_len, int timeout);
00020 void cmd_stls(char *params);
00021 void cmd_gtls(char *params);
00022 void endtls(void);
00023 void ssl_lock(int mode, int n, const char *file, int line);
00024 void CtdlStartTLS(char *ok_response, char *nosup_response, char *error_response);
00025 extern SSL_CTX *ssl_ctx;  
00026 
00027 #endif