librtcdcpp
librtcdcpp copied to clipboard
warning: 'DTLSv1_method' is deprecated [-Wdeprecated-declarations]
/usr/ports/www/librtcdcpp/work/librtcdcpp-49ddb949ed5dd2c8e859097b6723347f52e01645/src/DTLSWrapper.cpp:82:21: warning: 'DTLSv1_method' is deprecated [-Wdeprecated-declarations]
ctx = SSL_CTX_new(DTLSv1_method());
^
/usr/include/openssl/ssl.h:1895:1: note: 'DTLSv1_method' has been explicitly marked deprecated here
DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_method(void)) /* DTLSv1.0 */
^
/usr/include/openssl/opensslconf.h:147:34: note: expanded from macro 'DEPRECATEDIN_1_1_0'
# define DEPRECATEDIN_1_1_0(f) DECLARE_DEPRECATED(f)
^
/usr/include/openssl/opensslconf.h:110:55: note: expanded from macro 'DECLARE_DEPRECATED'
# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated));
^
1 warning generated.
FreeBSD 12.1 clang-9