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 8c49607 commit ac0e4ee
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");
Expand Down

0 comments on commit ac0e4ee

Please # to comment.