diff --git a/include/uvgrtp/lib.hh b/include/uvgrtp/lib.hh index 2c74376..01e2a7a 100644 --- a/include/uvgrtp/lib.hh +++ b/include/uvgrtp/lib.hh @@ -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(); diff --git a/src/lib.cc b/src/lib.cc index 3460f17..0ee11d8 100644 --- a/src/lib.cc +++ b/src/lib.cc @@ -78,3 +78,8 @@ std::string& uvgrtp::context::get_cname() { return cname_; } + +bool uvgrtp::context::crypto_enabled() const +{ + return uvgrtp::crypto::enabled(); +}