Switched DtlsSocketContext to shared_ptr