aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShine Fan <sfanxiang@gmail.com>2016-02-14 10:54:45 +0800
committerJay Satiro <raysatiro@yahoo.com>2016-02-13 22:21:32 -0500
commit078753c40d05fc4a07ee20a18f60fc325592b31c (patch)
treedda008881a4ca458099ac1a0c0358c32b45b3ff8
parent0443187611d5d1daa33b18fab16edde94f841510 (diff)
gtls: fix for builds lacking encrypted key file support
Bug: https://github.com/curl/curl/pull/651
-rw-r--r--lib/vtls/gtls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c
index 2c7eb1729..1fef54b48 100644
--- a/lib/vtls/gtls.c
+++ b/lib/vtls/gtls.c
@@ -684,11 +684,11 @@ gtls_connect_step1(struct connectdata *conn,
"error reading X.509 potentially-encrypted key file: %s",
gnutls_strerror(rc));
return CURLE_SSL_CONNECT_ERROR;
+ }
#else
- failf(data, "gnutls lacks support for encrypted key files");
- return CURLE_SSL_CONNECT_ERROR;
+ failf(data, "gnutls lacks support for encrypted key files");
+ return CURLE_SSL_CONNECT_ERROR;
#endif
- }
}
else {
rc = gnutls_certificate_set_x509_key_file(