0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-11 06:28:55 +02:00

ircd::openssl: Update exception type.

This commit is contained in:
Jason Volk 2018-05-15 02:58:04 -07:00
parent 82fbbad8e3
commit e5da1a82e7

View file

@ -59,8 +59,11 @@ ircd::openssl::current_cert(X509_STORE_CTX &cx)
X509_STORE_CTX_get_current_cert(&cx)
};
if(!ret)
throw std::out_of_range{"No current certificate"};
if(unlikely(!ret))
throw error
{
"No current certificate"
};
return *ret;
}
@ -74,8 +77,11 @@ ircd::openssl::current_cert(const X509_STORE_CTX &cx)
X509_STORE_CTX_get_current_cert(&mcx)
};
if(!ret)
throw std::out_of_range{"No current certificate"};
if(unlikely(!ret))
throw error
{
"No current certificate"
};
return *ret;
}