Mercurial > hg > freeDiameter-dtls
diff libfdcore/p_cnx.c @ 1219:8802d3fa5876
Got successful handshake over DTLS with this version
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Tue, 18 Jun 2013 15:51:11 +0800 |
parents | 92f33e5ecb77 |
children |
line wrap: on
line diff
--- a/libfdcore/p_cnx.c Tue Jun 18 12:46:14 2013 +0800 +++ b/libfdcore/p_cnx.c Tue Jun 18 15:51:11 2013 +0800 @@ -291,7 +291,7 @@ /* Handshake if needed (secure port) */ if (nc->dotls) { CHECK_FCT_DO( fd_cnx_handshake(cnx, GNUTLS_CLIENT, - ALGO_HANDSHAKE_3436, + (peer->p_hdr.info.config.pic_flags.sctpsec == PI_SCTPSEC_3436) ? ALGO_HANDSHAKE_3436 : ALGO_HANDSHAKE_DEFAULT, peer->p_hdr.info.config.pic_priority, NULL), { /* Handshake failed ... */