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

2 jobs for master in 2 minutes and 48 seconds
latest
Status Job ID Name Coverage
  Manifest
passed #44195
manifest

00:00:17

 
  Build
passed #44196
build fedora x86_64

00:02:31