Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/probes: Expect vector<byte> from cert_info #18287

Merged
merged 1 commit into from
May 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/v/net/probes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <ostream>
#include <span>
#include <string>
#include <vector>

namespace net {
void server_probe::setup_metrics(
Expand Down Expand Up @@ -292,7 +293,7 @@ void tls_certificate_probe::loaded(
return;
}

auto to_tls_serial = [](const auto& b) {
auto to_tls_serial = [](const std::vector<std::byte>& b) {
using T = tls_serial_number::type;
T result = 0;
const auto end = std::min(b.size(), sizeof(T));
Expand Down