Commit d854e3ce authored by Sebastien Decugis's avatar Sebastien Decugis
Browse files

Add hostname verification

parent fdf1b87a
......@@ -250,6 +250,9 @@ static void * connect_thr(void * arg)
pthread_cleanup_push((void *)fd_cnx_destroy, cnx);
/* Set the hostname in the connection, so that handshake verifies the remote identity */
/* Handshake if needed (secure port) */
if (nc->dotls) {
CHECK_FCT_DO( fd_cnx_handshake(cnx, GNUTLS_CLIENT, peer->, NULL),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment