summaryrefslogtreecommitdiff
path: root/lib/strerror.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-10-03 22:32:36 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-10-03 22:35:04 +0200
commit15e3e451702396e870c00d186ff7710792a1f28e (patch)
tree34e35da4099da75a29062735548773692d354d09 /lib/strerror.c
parent9dd85bced56f6951107f69e581c872c1e7e3e58e (diff)
downloadcurl-15e3e451702396e870c00d186ff7710792a1f28e.tar.gz
share: don't use SSL unless enabled
Don't even declare the struct members for disabled features Introducing the CURLSHE_NOT_BUILT_IN return code for the share interface when trying to set a sharing option that has been disabled (or not enabled) in the library.
Diffstat (limited to 'lib/strerror.c')
-rw-r--r--lib/strerror.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/strerror.c b/lib/strerror.c
index f038f8ec0..fcb617cf2 100644
--- a/lib/strerror.c
+++ b/lib/strerror.c
@@ -384,6 +384,9 @@ curl_share_strerror(CURLSHcode error)
case CURLSHE_NOMEM:
return "Out of memory";
+ case CURLSHE_NOT_BUILT_IN:
+ return "Feature not enabled in this library";
+
case CURLSHE_LAST:
break;
}