aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}
}
}