MCPcopy Index your code
hub / github.com/git/git / redact_sensitive_info_header

Function redact_sensitive_info_header

http.c:921–932  ·  view source on GitHub ↗

Redact headers in info */

Source from the content-addressed store, hash-verified

919
920/* Redact headers in info */
921static void redact_sensitive_info_header(struct strbuf *header)
922{
923 const char *sensitive_header;
924
925 if (trace_curl_redact &&
926 match_curl_h2_trace(header->buf, &sensitive_header)) {
927 if (redact_sensitive_header(header, sensitive_header - header->buf)) {
928 /* redaction ate our closing bracket */
929 strbuf_addch(header, ']');
930 }
931 }
932}
933
934static void curl_dump_header(const char *text, unsigned char *ptr, size_t size, int hide_sensitive_header)
935{

Callers 1

curl_dump_infoFunction · 0.85

Calls 3

match_curl_h2_traceFunction · 0.85
redact_sensitive_headerFunction · 0.85
strbuf_addchFunction · 0.85

Tested by

no test coverage detected