aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-12-25 04:38:07 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-12-25 04:38:07 +0000
commitc84f28d98e6323ea9f72806f041aec906bebf83b (patch)
tree8862e2c6f7672b662f9758abcd9d1544950af724 /socket.c
parent346f8cd485a03797a26ce9dfc45e21965b23ff32 (diff)
downloadfetchmail-c84f28d98e6323ea9f72806f041aec906bebf83b.tar.gz
fetchmail-c84f28d98e6323ea9f72806f041aec906bebf83b.tar.bz2
fetchmail-c84f28d98e6323ea9f72806f041aec906bebf83b.zip
Make silent mode silent.
svn path=/trunk/; revision=3567
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/socket.c b/socket.c
index 0d7bccdb..2631e1fb 100644
--- a/socket.c
+++ b/socket.c
@@ -794,13 +794,16 @@ int SSL_verify_callback( int ok_return, X509_STORE_CTX *ctx, int strict )
}
tp += esz;
}
- report(stdout, GT_("%s key fingerprint: %s\n"), _server_label, text);
+ if (outlevel > O_SILENT)
+ report(stdout, GT_("%s key fingerprint: %s\n"), _server_label, text);
if (_check_digest != NULL) {
if (strcmp(text, _check_digest) == 0)
+ if (outlevel > O_SILENT)
report(stdout, GT_("%s fingerprints match.\n"), _server_label);
else {
+ if (outlevel > O_SILENT)
report(stderr, GT_("%s fingerprints do not match!\n"), _server_label);
- return (0);
+ return (0);
}
}
}