aboutsummaryrefslogtreecommitdiff
path: root/lib/nss.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-08-30 20:34:57 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-08-30 20:34:57 +0000
commit9f44a95522162c0f4a61093efe1bf1f58b087358 (patch)
treeea90ca762a9a7a4f6772cb44b23e994b41f32644 /lib/nss.c
parent4b60c3e9d3d284125857ecf90b1910db5ba318a2 (diff)
Renamed several libcurl error codes and options to make them more general
and allow reuse by multiple protocols. Several unused error codes were removed. In all cases, macros were added to preserve source (and binary) compatibility with the old names. These macros are subject to removal at a future date, but probably not before 2009. An application can be tested to see if it is using any obsolete code by compiling it with the CURL_NO_OLDIES macro defined. Documented some newer error codes in libcurl-error(3)
Diffstat (limited to 'lib/nss.c')
-rw-r--r--lib/nss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nss.c b/lib/nss.c
index b61308309..36facb1b3 100644
--- a/lib/nss.c
+++ b/lib/nss.c
@@ -550,7 +550,7 @@ int Curl_nss_send(struct connectdata *conn, /* connection data */
if(err == PR_IO_TIMEOUT_ERROR) {
failf(data, "SSL connection timeout");
- return CURLE_OPERATION_TIMEOUTED;
+ return CURLE_OPERATION_TIMEDOUT;
}
failf(conn->data, "SSL write: error %d\n", err);
@@ -591,7 +591,7 @@ ssize_t Curl_nss_recv(struct connectdata * conn, /* connection data */
}
if(err == PR_IO_TIMEOUT_ERROR) {
failf(data, "SSL connection timeout");
- return CURLE_OPERATION_TIMEOUTED;
+ return CURLE_OPERATION_TIMEDOUT;
}
failf(conn->data, "SSL read: errno %d", err);
return -1;