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:
parent
82fbbad8e3
commit
e5da1a82e7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue