mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-23 07:40:11 -07:00
48 lines
1.4 KiB
Groff
48 lines
1.4 KiB
Groff
.\" generated by cd2nroff 0.1 from CURLOPT_KRBLEVEL.md
|
|
.TH CURLOPT_KRBLEVEL 3 "2024-08-02" libcurl
|
|
.SH NAME
|
|
CURLOPT_KRBLEVEL \- FTP kerberos security level
|
|
.SH SYNOPSIS
|
|
.nf
|
|
#include <curl/curl.h>
|
|
|
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_KRBLEVEL, char *level);
|
|
.fi
|
|
.SH DESCRIPTION
|
|
Pass a char pointer as parameter. Set the kerberos security level for FTP;
|
|
this also enables kerberos awareness. This is a string that should match one
|
|
of the following: &\(aqclear\(aq, &\(aqsafe\(aq, &\(aqconfidential\(aq or &\(aqprivate\(aq. If the
|
|
string is set but does not match one of these, \(aqprivate\(aq is used. Set the
|
|
string to NULL to disable kerberos support for FTP.
|
|
|
|
The application does not have to keep the string around after setting this
|
|
option.
|
|
.SH DEFAULT
|
|
NULL
|
|
.SH PROTOCOLS
|
|
This functionality affects ftp only
|
|
.SH EXAMPLE
|
|
.nf
|
|
int main(void)
|
|
{
|
|
CURL *curl = curl_easy_init();
|
|
if(curl) {
|
|
CURLcode res;
|
|
curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/foo.bin");
|
|
curl_easy_setopt(curl, CURLOPT_KRBLEVEL, "private");
|
|
res = curl_easy_perform(curl);
|
|
curl_easy_cleanup(curl);
|
|
}
|
|
}
|
|
.fi
|
|
.SH HISTORY
|
|
This option was known as CURLOPT_KRB4LEVEL up to 7.16.3
|
|
.SH AVAILABILITY
|
|
Added in curl 7.16.4
|
|
.SH RETURN VALUE
|
|
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or
|
|
CURLE_OUT_OF_MEMORY if there was insufficient heap space.
|
|
.SH SEE ALSO
|
|
.BR CURLOPT_KRBLEVEL (3),
|
|
.BR CURLOPT_USE_SSL (3)
|