]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Use gnutls_strerror() for clearer error message.
authorGisle Vanem <gvanem@broadpark.no>
Wed, 16 Aug 2006 17:05:54 +0000 (17:05 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Wed, 16 Aug 2006 17:05:54 +0000 (17:05 +0000)
lib/gtls.c

index dc33dc600759c3cfe731a568fd5dc34d3addd37b..b202adfd44c5e872336e81dd3e0ec031d93a3d51 100644 (file)
@@ -168,8 +168,7 @@ static CURLcode handshake(struct connectdata *conn,
   } while(1);
 
   if (rc < 0) {
-    failf(data, "gnutls_handshake() failed: %d", rc);
-    /* gnutls_perror(ret); */
+    failf(data, "gnutls_handshake() failed: %s", gnutls_strerror(rc));
     return CURLE_SSL_CONNECT_ERROR;
   }