aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/gtls.c4
-rw-r--r--lib/strerror.c3
2 files changed, 2 insertions, 5 deletions
diff --git a/lib/gtls.c b/lib/gtls.c
index 89174edf2..71ceb34d9 100644
--- a/lib/gtls.c
+++ b/lib/gtls.c
@@ -354,7 +354,7 @@ gtls_connect_step1(struct connectdata *conn,
if(rc != GNUTLS_E_SUCCESS) {
failf(data, "gnutls_srp_allocate_client_cred() failed: %s",
gnutls_strerror(rc));
- return CURLE_TLSAUTH_FAILED;
+ return CURLE_OUT_OF_MEMORY;
}
rc = gnutls_srp_set_client_credentials(conn->ssl[sockindex].srp_client_cred,
@@ -363,7 +363,7 @@ gtls_connect_step1(struct connectdata *conn,
if(rc != GNUTLS_E_SUCCESS) {
failf(data, "gnutls_srp_set_client_cred() failed: %s",
gnutls_strerror(rc));
- return CURLE_TLSAUTH_FAILED;
+ return CURLE_BAD_FUNCTION_ARGUMENT;
}
}
#endif
diff --git a/lib/strerror.c b/lib/strerror.c
index 6b67a8777..a88cdc4eb 100644
--- a/lib/strerror.c
+++ b/lib/strerror.c
@@ -281,9 +281,6 @@ curl_easy_strerror(CURLcode error)
case CURLE_CHUNK_FAILED:
return "Chunk callback failed";
- case CURLE_TLSAUTH_FAILED:
- return "TLS Authentication failed";
-
/* error codes not used by current libcurl */
case CURLE_OBSOLETE4:
case CURLE_OBSOLETE10: