mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 08:12:37 +01:00
ircd::net: Remove explicit string conversion.
This commit is contained in:
parent
9a44188c00
commit
945ce126c5
1 changed files with 2 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue