Skip to content

Commit

Permalink
Fix debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
boazsegev committed Oct 18, 2024
1 parent 3bfbdf4 commit 09ebcf1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
16 changes: 7 additions & 9 deletions fio-stl.h
Original file line number Diff line number Diff line change
Expand Up @@ -9091,8 +9091,6 @@ SFUNC fio_url_tls_info_s fio_url_is_tls(fio_url_s u) {
!(i.value.len == 4 &&
(fio_buf2u32u(i.value.buf) | 0x20202020UL) == wrd_true))
cert = key = i.value;
else
FIO_LOG_DEBUG2("tls=1 or tls=true detected");
}
break;
case 4:
Expand All @@ -9114,13 +9112,13 @@ SFUNC fio_url_tls_info_s fio_url_is_tls(fio_url_s u) {
}
FIO_LOG_DDEBUG2(
"URL TLS detection:\n\t%s\n\tkey: %.*s\n\tcert: %.*s\n\tpass: %.*s",
(tls_info.tls ? "Secure" : "plaintext"),
(int)tls_info.key.len,
tls_info.key.buf,
(int)tls_info.cert.len,
tls_info.cert.buf,
(int)tls_info.pass.len,
tls_info.pass.buf);
(r.tls ? "Secure" : "plaintext"),
(int)r.key.len,
r.key.buf,
(int)r.cert.len,
r.cert.buf,
(int)r.pass.len,
r.pass.buf);
return r;
}
/* *****************************************************************************
Expand Down
16 changes: 7 additions & 9 deletions fio-stl/002 url.h
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,6 @@ SFUNC fio_url_tls_info_s fio_url_is_tls(fio_url_s u) {
!(i.value.len == 4 &&
(fio_buf2u32u(i.value.buf) | 0x20202020UL) == wrd_true))
cert = key = i.value;
else
FIO_LOG_DEBUG2("tls=1 or tls=true detected");
}
break;
case 4:
Expand All @@ -528,13 +526,13 @@ SFUNC fio_url_tls_info_s fio_url_is_tls(fio_url_s u) {
}
FIO_LOG_DDEBUG2(
"URL TLS detection:\n\t%s\n\tkey: %.*s\n\tcert: %.*s\n\tpass: %.*s",
(tls_info.tls ? "Secure" : "plaintext"),
(int)tls_info.key.len,
tls_info.key.buf,
(int)tls_info.cert.len,
tls_info.cert.buf,
(int)tls_info.pass.len,
tls_info.pass.buf);
(r.tls ? "Secure" : "plaintext"),
(int)r.key.len,
r.key.buf,
(int)r.cert.len,
r.cert.buf,
(int)r.pass.len,
r.pass.buf);
return r;
}
/* *****************************************************************************
Expand Down

0 comments on commit 09ebcf1

Please sign in to comment.