X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_ssl.c;h=1fb7aa524da4e931a196eb5bbc4cf595980967ca;hp=88bd825a1b7f845731bc056079ba911e2c0a67e7;hb=75291cb065ec25499a125665cba1123ee4c64abf;hpb=ba5e3af4ea19e1d20c80941c077039871ec84258 diff --git a/mutt_ssl.c b/mutt_ssl.c index 88bd825..1fb7aa5 100644 --- a/mutt_ssl.c +++ b/mutt_ssl.c @@ -11,6 +11,8 @@ # include "config.h" #endif +#ifdef USE_SSL + #include #include #include @@ -62,7 +64,7 @@ typedef struct _sslsockdata { } sslsockdata; /* local prototypes */ -int ssl_init (void); +static int ssl_init (void); static int add_entropy (const char *file); static int ssl_socket_read (CONNECTION * conn, char *buf, size_t len); static int ssl_socket_write (CONNECTION * conn, const char *buf, size_t len); @@ -137,7 +139,7 @@ bail: * versions also. (That's the reason for the ugly #ifdefs and macros, * otherwise I could have simply #ifdef'd the whole ssl_init funcion) */ -int ssl_init (void) +static int ssl_init (void) { char path[_POSIX_PATH_MAX]; static unsigned char init_complete = 0; @@ -219,7 +221,7 @@ static int ssl_socket_open_err (CONNECTION * conn) } -int ssl_socket_setup (CONNECTION * conn) +int mutt_ssl_socket_setup (CONNECTION * conn) { if (ssl_init () < 0) { conn->conn_open = ssl_socket_open_err; @@ -707,3 +709,5 @@ static int ssl_passwd_cb (char *buf, int size, int rwflag, void *userdata) return snprintf (buf, size, "%s", account->pass); } + +#endif /* USE_SSL */