aboutsummaryrefslogtreecommitdiff
path: root/lib/strerror.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-09-02 15:11:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-09-02 15:11:08 +0000
commit56d9624b566ac15ffb4b4b6eef220a5000b767e0 (patch)
tree9511f37ced87ba79fe96416b21e41fadffe17224 /lib/strerror.c
parent911d135deb619f6d18ae3e0150c3808be54831a3 (diff)
John Kelly added TFTP support to libcurl. A bunch of new error codes was
added. TODO: add them to docs. add TFTP server to test suite. add TFTP to list of protocols whereever those are mentioned.
Diffstat (limited to 'lib/strerror.c')
-rw-r--r--lib/strerror.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/strerror.c b/lib/strerror.c
index 2d0b34270..4edd28ac7 100644
--- a/lib/strerror.c
+++ b/lib/strerror.c
@@ -245,6 +245,27 @@ curl_easy_strerror(CURLcode error)
case CURLE_LOGIN_DENIED:
return "FTP: login denied";;
+ case CURLE_TFTP_NOTFOUND:
+ return "TFTP: File Not Found";;
+
+ case CURLE_TFTP_PERM:
+ return "TFTP: Access Violation";;
+
+ case CURLE_TFTP_DISKFULL:
+ return "TFTP: Disk full or allocation exceeded";;
+
+ case CURLE_TFTP_ILLEGAL:
+ return "TFTP: Illegal operation";;
+
+ case CURLE_TFTP_UNKNOWNID:
+ return "TFTP: Unknown transfer ID";;
+
+ case CURLE_TFTP_EXISTS:
+ return "TFTP: File already exists";;
+
+ case CURLE_TFTP_NOSUCHUSER:
+ return "TFTP: No such user";;
+
case CURLE_URL_MALFORMAT_USER: /* not used by current libcurl */
case CURLE_MALFORMAT_USER: /* not used by current libcurl */
case CURLE_BAD_CALLING_ORDER: /* not used by current libcurl */