aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-01-16 17:40:22 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-01-16 17:40:22 +0000
commit1678177dafd26844079cff785865550e0b1ddb41 (patch)
treeb20e19f3d24612aa16034f4bdef0b57c900bd01b /socket.c
parentf7ca66b6c85e50afffeeb891565acfa537828445 (diff)
downloadfetchmail-1678177dafd26844079cff785865550e0b1ddb41.tar.gz
fetchmail-1678177dafd26844079cff785865550e0b1ddb41.tar.bz2
fetchmail-1678177dafd26844079cff785865550e0b1ddb41.zip
Various minor fixes.
svn path=/trunk/; revision=2710
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/socket.c b/socket.c
index a03be4bf..4dde2048 100644
--- a/socket.c
+++ b/socket.c
@@ -530,10 +530,10 @@ int SSL_verify_callback( int ok_return, X509_STORE_CTX *ctx )
*str_ptr = '\0';
}
if (outlevel == O_VERBOSE)
- report(stdout, "Issuer Organization: %s", cbuf );
+ report(stdout, "Issuer Organization: %s\n", cbuf );
} else {
if (outlevel == O_VERBOSE)
- report(stdout, "Unknown Organization", cbuf );
+ report(stdout, "Unknown Organization\n", cbuf );
}
if( ( str_ptr = strstr( ibuf, "/CN=" ) ) ) {
str_ptr += 4;
@@ -542,10 +542,10 @@ int SSL_verify_callback( int ok_return, X509_STORE_CTX *ctx )
*str_ptr = '\0';
}
if (outlevel == O_VERBOSE)
- report(stdout, "Issuer CommonName: %s", cbuf );
+ report(stdout, "Issuer CommonName: %s\n", cbuf );
} else {
if (outlevel == O_VERBOSE)
- report(stdout, "Unknown Issuer CommonName", cbuf );
+ report(stdout, "Unknown Issuer CommonName\n", cbuf );
}
if( ( str_ptr = strstr( buf, "/CN=" ) ) ) {
str_ptr += 4;
@@ -554,14 +554,17 @@ int SSL_verify_callback( int ok_return, X509_STORE_CTX *ctx )
*str_ptr = '\0';
}
if (outlevel == O_VERBOSE)
- report(stdout, "Server CommonName: %s", cbuf );
+ report(stdout, "Server CommonName: %s\n", cbuf );
/* Should we have some wildcarding here? */
- if ( NULL != _ssl_server_cname && 0 != strcmp( cbuf, _ssl_server_cname ) ) {
- report(stdout, "Server CommonName mismatch: %s != %s", cbuf, _ssl_server_cname );
+ if ( NULL != _ssl_server_cname
+ && 0 != strcmp( cbuf, _ssl_server_cname ) ) {
+ report(stdout,
+ "Server CommonName mismatch: %s != %s\n",
+ cbuf, _ssl_server_cname );
}
} else {
if (outlevel == O_VERBOSE)
- report(stdout, "Unknown Server CommonName", cbuf );
+ report(stdout, "Unknown Server CommonName\n", cbuf );
}
}