Improve the error message for GetX509Certificate().

This commit is contained in:
Gunnar Beutner 2013-10-17 15:46:50 +02:00
parent bfca571083
commit 492aed030e
1 changed files with 2 additions and 1 deletions

View File

@ -148,7 +148,8 @@ shared_ptr<X509> GetX509Certificate(const String& pemfile)
if (cert == NULL) {
BOOST_THROW_EXCEPTION(openssl_error()
<< boost::errinfo_api_function("PEM_read_bio_X509_AUX")
<< errinfo_openssl_error(ERR_get_error()));
<< errinfo_openssl_error(ERR_get_error()))
<< boost::errinfo_file_name(pemfile));
}
BIO_free(fpcert);