nplab / DTLS-Examples

Examples for DTLS via SCTP and UDP using OpenSSL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Switch from `inet_pton` to `getaddrinfo`? Why is `SSL_CTX_set_verify_depth` set to 2 in client?

ROTARTSI82 opened this issue · comments

I suggest using getaddrinfo instead of manually packing the structs. https://beej.us/guide/bgnet/html/#getaddrinfoman

Also, is there a reason why SSL_CTX_set_verify_depth is 2?