net: tls: Add DTLS protocol types

Define DTLS protocol types and and Kconfig option to enable DTLS
support.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2018-08-06 14:31:07 +02:00 committed by Jukka Rissanen
commit 85db974ec3
3 changed files with 13 additions and 5 deletions

View file

@ -59,6 +59,8 @@ enum net_ip_protocol_secure {
IPPROTO_TLS_1_0 = 256,
IPPROTO_TLS_1_1 = 257,
IPPROTO_TLS_1_2 = 258,
IPPROTO_DTLS_1_0 = 272,
IPPROTO_DTLS_1_2 = 273,
};
/** Socket type */