Handle DTLS version encoding and fix some checks
4 files changed