diff options
-rw-r--r-- | socket.c | 9 | ||||
-rw-r--r-- | transact.c | 3 |
2 files changed, 5 insertions, 7 deletions
@@ -898,10 +898,9 @@ static int SSL_ck_verify_callback( int ok_return, X509_STORE_CTX *ctx ) int SSLOpen(int sock, char *mycert, char *mykey, char *myproto, int certck, char *certpath, char *fingerprint, char *servercname, char *label) { - SSL *ssl; struct stat randstat; int i; - + SSL_load_error_strings(); SSLeay_add_ssl_algorithms(); @@ -1004,7 +1003,7 @@ int SSLOpen(int sock, char *mycert, char *mykey, char *myproto, int certck, char if ((fingerprint != NULL || certck) && !_depth0ck) { report(stderr, GT_("Certificate/fingerprint verification was somehow skipped!\n")); - if( NULL != ( ssl = SSLGetContext( sock ) ) ) { + if( NULL != SSLGetContext( sock ) ) { /* Clean up the SSL stack */ SSL_free( _ssl_context[sock] ); _ssl_context[sock] = NULL; @@ -1020,9 +1019,7 @@ int SockClose(int sock) /* close a socket gracefully */ { #ifdef SSL_ENABLE - SSL *ssl; - - if( NULL != ( ssl = SSLGetContext( sock ) ) ) { + if( NULL != SSLGetContext( sock ) ) { /* Clean up the SSL stack */ SSL_free( _ssl_context[sock] ); _ssl_context[sock] = NULL; @@ -379,7 +379,8 @@ int readheaders(int sock, int env_offs; char *received_for, *rcv, *cp; static char *delivered_to = NULL; - int n, linelen, oldlen, ch, remaining, skipcount; + int n, oldlen, ch, remaining, skipcount; + size_t linelen; struct idlist *idp; flag no_local_matches = FALSE; flag has_nuls; |