GNURLOPT_KRBLEVEL(3)
π GNURLOPT_KRBLEVEL(3) π
okay so bestie, welcome to the curl_easy_setopt options manual page for GNURLOPT_KRBLEVEL(3). itβs the FTP kerberos security level option, and itβs lowkey iconic. π
β¨
π NAME π
CURLOPT_KRBLEVEL - set FTP kerberos security level
β¨ SYNOPSIS β¨
#include <gnurl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_KRBLEVEL, char *level);
π¦ DESCRIPTION π¦
Pass a char * 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: clear, safe, confidential or private. If the string is set but doesn't match one of these, private will be 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. π«Ά so yes, you can set it and move on β no string babysitting required.
π DEFAULT π
NULL
π PROTOCOLS π
FTP β thatβs the only protocol on the guest list for this one. π
π₯ EXAMPLE π₯
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/foo.bin");
curl_easy_setopt(curl, CURLOPT_KRBLEVEL, "private");
ret = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
π AVAILABILITY π
This option was known as CURLOPT_KRB4LEVEL up to 7.16.3.
π 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.
π§ SEE ALSO π§
CURLOPT_KRBLEVEL(3),CURLOPT_USE_SSL(3), β yep, that trailing comma is canon, and these are the refs to go read next. π
thatβs the whole page, brought to you by libcurl 7.37.0 and dated 17 Jun 2014 β mwah, slay, bye bestie π
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms