Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenSSLPKI::x509_get_serial: Handle NULL result from BN_bn2dec
The BN_bn2dec() can return NULL if the input is not parseable. This would cause the conversion of char* to std::string to throw an exception. Instead check the result and return an empty string on errors. Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
- Loading branch information