dtls: Fix compilation without deprecated APIs on OpenSSL 1.1.x

Merged Rosen Penev requested to merge mangix/gst-plugins-bad:master into master

Merge request reports