1CURLOPT_KRBLEVEL(3)        curl_easy_setopt options        CURLOPT_KRBLEVEL(3)
2
3
4

NAME

6       CURLOPT_KRBLEVEL - set FTP kerberos security level
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLcode curl_easy_setopt(CURL *handle, CURLOPT_KRBLEVEL, char *level);
12

DESCRIPTION

14       Pass  a  char  * as parameter. Set the kerberos security level for FTP;
15       this also enables kerberos awareness.  This is  a  string  that  should
16       match  one  of  the following: 'clear', 'safe', 'confidential' or 'pri‐
17       vate'.  If the string is set but doesn't match one of these,  'private'
18       will  be  used.  Set the string to NULL to disable kerberos support for
19       FTP.
20
21       The application does not have to keep the string around  after  setting
22       this option.
23

DEFAULT

25       NULL
26

PROTOCOLS

28       FTP
29

EXAMPLE

31       CURL *curl = curl_easy_init();
32       if(curl) {
33         curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/foo.bin");
34         curl_easy_setopt(curl, CURLOPT_KRBLEVEL, "private");
35         ret = curl_easy_perform(curl);
36         curl_easy_cleanup(curl);
37       }
38

AVAILABILITY

40       This option was known as CURLOPT_KRB4LEVEL up to 7.16.3
41

RETURN VALUE

43       Returns  CURLE_OK  if  the option is supported, CURLE_UNKNOWN_OPTION if
44       not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space.
45

SEE ALSO

47       CURLOPT_KRBLEVEL(3), CURLOPT_USE_SSL(3),
48
49
50
51libcurl 7.64.0                   May 31, 2017              CURLOPT_KRBLEVEL(3)
Impressum