0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-01 05:08:59 +02:00

ircd::net: Remove explicit string conversion.

This commit is contained in:
Jason Volk 2019-04-16 21:11:39 -07:00
parent 9a44188c00
commit 945ce126c5

View file

@ -3384,16 +3384,15 @@ noexcept try
if(verify_common_name)
{
if(unlikely(empty(common_name(opts))))
if(unlikely(!common_name(opts)))
throw inauthentic
{
"No common name specified in connection options"
};
//TODO: this object makes an std::string
boost::asio::ssl::rfc2818_verification verifier
{
std::string(common_name(opts))
common_name(opts)
};
if(!verifier(true, vc))