diff options
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); } } } |