From: Daniel Stenberg Date: Thu, 15 May 2025 09:02:55 +0000 (+0200) Subject: docs/libcurl: mention sensitive data/headers X-Git-Tag: curl-8_14_0~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4310c0fb970637d7e7e759c3e29f9323136eca3;p=thirdparty%2Fcurl.git docs/libcurl: mention sensitive data/headers In the CURLOPT_DEBUGFUNCTION and CURLOPT_VERBOSE documentation. Mentioned-by: Gordon Parke Fixes #17353 Closes #17355 --- diff --git a/docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.md b/docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.md index d8d8053112..9e7aa8ad73 100644 --- a/docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.md +++ b/docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.md @@ -51,11 +51,13 @@ Pass a pointer to your callback function, which should match the prototype shown above. CURLOPT_DEBUGFUNCTION(3) replaces the standard debug function used when -CURLOPT_VERBOSE(3) is in effect. This callback receives debug -information, as specified in the *type* argument. This function must -return 0. The *data* pointed to by the char * passed to this function is -not null-terminated, but is exactly of the *size* as told by the -*size* argument. +CURLOPT_VERBOSE(3) is in effect. This callback receives debug information, as +specified in the *type* argument. This function must return 0. The *data* +pointed to by the char * passed to this function is not null-terminated, but +is exactly of the *size* as told by the *size* argument. + +**WARNING** this callback may receive sensitive contents from headers and +data, including information sent as **CURLINFO_TEXT**. The *clientp* argument is the pointer set with CURLOPT_DEBUGDATA(3). diff --git a/docs/libcurl/opts/CURLOPT_VERBOSE.md b/docs/libcurl/opts/CURLOPT_VERBOSE.md index 8d4801871a..3718003de4 100644 --- a/docs/libcurl/opts/CURLOPT_VERBOSE.md +++ b/docs/libcurl/opts/CURLOPT_VERBOSE.md @@ -28,10 +28,10 @@ CURLcode curl_easy_setopt(CURL *handle, CURLOPT_VERBOSE, long onoff); # DESCRIPTION -Set the *onoff* parameter to 1 to make the library display a lot of -verbose information about its operations on this *handle*. Useful for -libcurl and/or protocol debugging and understanding. The verbose information -is sent to stderr, or the stream set with CURLOPT_STDERR(3). +Set the *onoff* parameter to 1 to make the library display a lot of verbose +information about its operations on this *handle*. Useful for libcurl and/or +protocol debugging and understanding. The verbose information is sent to +stderr, or the stream set with CURLOPT_STDERR(3). You hardly ever want this enabled in production use, you almost always want this used when you debug/report problems. @@ -39,6 +39,8 @@ this used when you debug/report problems. To also get all the protocol data sent and received, consider using the CURLOPT_DEBUGFUNCTION(3). +**WARNING** this may show sensitive contents from headers and data. + # DEFAULT 0, meaning disabled.