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?