api: Add check for Crypto inclusion to context class

This commit is contained in:
Joni Räsänen 2021-07-20 16:11:16 +03:00
parent 9511513fd1
commit 1db0404b61
2 changed files with 7 additions and 0 deletions

View File

@ -81,6 +81,8 @@ namespace uvgrtp {
std::string& get_cname();
/// \endcond
bool crypto_enabled() const;
private:
/* Generate CNAME for participant using host and login names */
std::string generate_cname();

View File

@ -78,3 +78,8 @@ std::string& uvgrtp::context::get_cname()
{
return cname_;
}
bool uvgrtp::context::crypto_enabled() const
{
return uvgrtp::crypto::enabled();
}