Skip to content

Commit

Permalink
[ssl cert] fixed the linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeliao committed Feb 17, 2025
1 parent 6f96506 commit ee42308
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cert/ssl_cert_provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ void set_random_serial_number(X509* cert)
serial_bytes[0] &= 0x7F;

// Convert bytes to an BIGNUM, an arbitrary-precision integer type
std::unique_ptr<BIGNUM, decltype(&BN_free)> bn(BN_bin2bn(serial_bytes.data(), serial_bytes.size(), nullptr), BN_free);
std::unique_ptr<BIGNUM, decltype(&BN_free)> bn(BN_bin2bn(serial_bytes.data(), serial_bytes.size(), nullptr),
BN_free);
if (!bn)
{
throw std::runtime_error("Failed to convert serial bytes to BIGNUM\n");

Check warning on line 158 in src/cert/ssl_cert_provider.cpp

View check run for this annotation

Codecov / codecov/patch

src/cert/ssl_cert_provider.cpp#L158

Added line #L158 was not covered by tests
Expand Down

0 comments on commit ee42308

Please sign in to comment.