summaryrefslogtreecommitdiff
path: root/vchat-ssl.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2016-04-15 13:07:48 +0200
committerDirk Engling <erdgeist@erdgeist.org>2016-04-15 13:07:48 +0200
commit2d0c1c42afd1e50864312890c9e3909294bf21ed (patch)
treed5e76f75ae01c05a8efe148c4b042c059b1ea90c /vchat-ssl.c
parentcce7cdc5a12212dc134f3608a5a82a2cb83d2041 (diff)
Also allow ignoring SSL error, if fingerprinting is enabled
Diffstat (limited to 'vchat-ssl.c')
-rwxr-xr-xvchat-ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vchat-ssl.c b/vchat-ssl.c
index fab5ffe..2a1c28a 100755
--- a/vchat-ssl.c
+++ b/vchat-ssl.c
@@ -197,7 +197,7 @@ int vc_connect_ssl( BIO **conn, vc_x509store_t *vc_store )
197 } 197 }
198#else 198#else
199 /* show & verify fingerprint */ 199 /* show & verify fingerprint */
200 if (result == X509_V_OK) { 200 if ((result == X509_V_OK) || getintoption(CF_IGNSSL)) {
201 X509 *peercert = SSL_get_peer_certificate(sslp); 201 X509 *peercert = SSL_get_peer_certificate(sslp);
202 202
203 /* FIXME: this IS bad code */ 203 /* FIXME: this IS bad code */