Changeset 1187:436e4342ecd0 in freeDiameter for libfdcore
- Timestamp:
- Jun 10, 2013, 1:04:50 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libfdcore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/fdd.l
r1180 r1187 246 246 (?i:"Port") { return PORT; } 247 247 (?i:"SecPort") { return SECPORT; } 248 (?i:"SctpSec3436") { return SEC3436; } 248 /* (?i:"SctpSec3436") { return SEC3436; } */ 249 249 (?i:"No_IPv6") { return NOIP6; } 250 250 (?i:"No_IP") { return NOIP; } -
libfdcore/p_cnx.c
r1186 r1187 283 283 if (nc->dotls) { 284 284 CHECK_FCT_DO( fd_cnx_handshake(cnx, GNUTLS_CLIENT, 285 (peer->p_hdr.info.config.pic_flags.sctpsec == PI_SCTPSEC_3436) ? ALGO_HANDSHAKE_3436 : ALGO_HANDSHAKE_DEFAULT,285 ALGO_HANDSHAKE_3436, 286 286 peer->p_hdr.info.config.pic_priority, NULL), 287 287 { -
libfdcore/server.c
r1181 r1187 54 54 struct cnxctx * conn; /* server connection context (listening socket) */ 55 55 int proto; /* IPPROTO_TCP or IPPROTO_SCTP */ 56 int secur; /* TLS is started immediatly after connection ? 0: no; 1: yes (TLS/TCP or DTLS/SCTP);2: yes (TLS/TCP or TLS/SCTP) */56 int secur; /* TLS is started immediatly after connection ? 0: no; 2: yes (TLS/TCP or TLS/SCTP) */ 57 57 58 58 pthread_t thr; /* The thread listening for new connections */ … … 361 361 /* Create the server on secure port */ 362 362 if (fd_g_config->cnf_port_tls) { 363 CHECK_MALLOC( s = new_serv(IPPROTO_SCTP, 1) );363 CHECK_MALLOC( s = new_serv(IPPROTO_SCTP, 2 /* Change when DTLS is introduced */) ); 364 364 CHECK_MALLOC( s->conn = fd_cnx_serv_sctp(fd_g_config->cnf_port_tls, empty_conf_ep ? NULL : &fd_g_config->cnf_endpoints) ); 365 365 fd_list_insert_before( &FD_SERVERS, &s->chain ); … … 368 368 369 369 /* Create the other server on 3436 secure port */ 370 if (fd_g_config->cnf_port_3436) {370 /*if (fd_g_config->cnf_port_3436) { 371 371 CHECK_MALLOC( s = new_serv(IPPROTO_SCTP, 2) ); 372 372 CHECK_MALLOC( s->conn = fd_cnx_serv_sctp(fd_g_config->cnf_port_3436, empty_conf_ep ? NULL : &fd_g_config->cnf_endpoints) ); 373 373 fd_list_insert_before( &FD_SERVERS, &s->chain ); 374 374 CHECK_POSIX( pthread_create( &s->thr, NULL, serv_th, s ) ); 375 } 375 }*/ 376 376 377 377 #endif /* DISABLE_SCTP */
Note: See TracChangeset
for help on using the changeset viewer.