aboutsummaryrefslogtreecommitdiff
path: root/lib/vtls/gtls.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-10-13 22:22:49 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-10-13 22:22:49 +0200
commit9d64ab7d5a15b9271bef58cc19d65da151e6ceb0 (patch)
tree23089d02e8d769e3922ac010827253653204a783 /lib/vtls/gtls.c
parent357ff4d1dc1209b67183d14f544757abe2c8d60e (diff)
pinning: minor code style policing
Diffstat (limited to 'lib/vtls/gtls.c')
-rw-r--r--lib/vtls/gtls.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c
index 6ffe29798..6666104b9 100644
--- a/lib/vtls/gtls.c
+++ b/lib/vtls/gtls.c
@@ -692,8 +692,11 @@ static CURLcode pkp_pin_peer_pubkey(gnutls_x509_crt_t cert,
CURLcode result = CURLE_SSL_PINNEDPUBKEYNOTMATCH;
/* if a path wasn't specified, don't pin */
- if(NULL == pinnedpubkey) return CURLE_OK;
- if(NULL == cert) return result;
+ if(NULL == pinnedpubkey)
+ return CURLE_OK;
+
+ if(NULL == cert)
+ return result;
do {
/* Begin Gyrations to get the public key */
@@ -705,7 +708,7 @@ static CURLcode pkp_pin_peer_pubkey(gnutls_x509_crt_t cert,
ret = gnutls_pubkey_export(key, GNUTLS_X509_FMT_DER, NULL, &len1);
if(ret != GNUTLS_E_SHORT_MEMORY_BUFFER || len1 == 0)
- break; /* failed */
+ break; /* failed */
buff1 = malloc(len1);
if(NULL == buff1)