]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
docs/libcurl: mention sensitive data/headers
authorDaniel Stenberg <daniel@haxx.se>
Thu, 15 May 2025 09:02:55 +0000 (11:02 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 15 May 2025 17:42:32 +0000 (19:42 +0200)
In the CURLOPT_DEBUGFUNCTION and CURLOPT_VERBOSE documentation.

Mentioned-by: Gordon Parke
Fixes #17353
Closes #17355

docs/libcurl/opts/CURLOPT_DEBUGFUNCTION.md
docs/libcurl/opts/CURLOPT_VERBOSE.md

index d8d8053112d7d0a9228b0287dd575432f66c533a..9e7aa8ad73928217bb5172c3ed7c1f8905c0ef1f 100644 (file)
@@ -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).
 
index 8d4801871a1d4209716f5b8f21192b129d11ed38..3718003de4beb59a1aeda2461048788bf33b7195 100644 (file)
@@ -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.