api: Add check for Crypto inclusion to context class
This commit is contained in:
parent
9511513fd1
commit
1db0404b61
|
@ -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();
|
||||
|
|
|
@ -78,3 +78,8 @@ std::string& uvgrtp::context::get_cname()
|
|||
{
|
||||
return cname_;
|
||||
}
|
||||
|
||||
bool uvgrtp::context::crypto_enabled() const
|
||||
{
|
||||
return uvgrtp::crypto::enabled();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue