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();
|
std::string& get_cname();
|
||||||
/// \endcond
|
/// \endcond
|
||||||
|
|
||||||
|
bool crypto_enabled() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/* Generate CNAME for participant using host and login names */
|
/* Generate CNAME for participant using host and login names */
|
||||||
std::string generate_cname();
|
std::string generate_cname();
|
||||||
|
|
|
@ -78,3 +78,8 @@ std::string& uvgrtp::context::get_cname()
|
||||||
{
|
{
|
||||||
return cname_;
|
return cname_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool uvgrtp::context::crypto_enabled() const
|
||||||
|
{
|
||||||
|
return uvgrtp::crypto::enabled();
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue