docs: use CURLSSLBACKEND_NONE

[ssl] use CURLSSLBACKEND_NONE instead of (curl_sslbackend)-1 in
documentation and examples.

Signed-off-by: Ted Lyngmo <ted@lyncon.se>

Closes #11909
This commit is contained in:
Ted Lyngmo 2023-09-21 12:44:35 +02:00 committed by Daniel Stenberg
parent b2b0534e76
commit c1ab33ed79
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 6 additions and 5 deletions

View file

@ -49,7 +49,7 @@ int main(int argc, char **argv)
const curl_ssl_backend **list;
int i;
result = curl_global_sslset((curl_sslbackend)-1, NULL, &list);
result = curl_global_sslset(CURLSSLBACKEND_NONE, NULL, &list);
assert(result == CURLSSLSET_UNKNOWN_BACKEND);
for(i = 0; list[i]; i++)
@ -64,7 +64,7 @@ int main(int argc, char **argv)
result = curl_global_sslset((curl_sslbackend)id, NULL, NULL);
}
else
result = curl_global_sslset((curl_sslbackend)-1, name, NULL);
result = curl_global_sslset(CURLSSLBACKEND_NONE, name, NULL);
if(result == CURLSSLSET_UNKNOWN_BACKEND) {
fprintf(stderr, "Unknown SSL backend id: %s\n", name);