Mercurial > hg > freeDiameter
comparison libfdcore/cnxctx.c @ 1211:98478a8aabb1
Fix compilation warning
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Mon, 17 Jun 2013 09:47:00 +0800 |
parents | ce2b00dc86c1 |
children | bd6b40c9f731 |
comparison
equal
deleted
inserted
replaced
1210:0ef5c4eda92a | 1211:98478a8aabb1 |
---|---|
1634 return 1; | 1634 return 1; |
1635 #endif /* DISABLE_SCTP */ | 1635 #endif /* DISABLE_SCTP */ |
1636 return 0; | 1636 return 0; |
1637 } | 1637 } |
1638 | 1638 |
1639 #ifndef DISABLE_SCTP | |
1639 static int fd_cnx_uses_dtls(struct cnxctx * conn) { | 1640 static int fd_cnx_uses_dtls(struct cnxctx * conn) { |
1640 return fd_cnx_may_dtls(conn) && (fd_cnx_teststate(conn, CC_STATUS_TLS)); | 1641 return fd_cnx_may_dtls(conn) && (fd_cnx_teststate(conn, CC_STATUS_TLS)); |
1641 } | 1642 } |
1643 #endif /* DISABLE_SCTP */ | |
1642 | 1644 |
1643 /* TLS handshake a connection; no need to have called start_clear before. Reception is active if handhsake is successful */ | 1645 /* TLS handshake a connection; no need to have called start_clear before. Reception is active if handhsake is successful */ |
1644 int fd_cnx_handshake(struct cnxctx * conn, int mode, int algo, char * priority, void * alt_creds) | 1646 int fd_cnx_handshake(struct cnxctx * conn, int mode, int algo, char * priority, void * alt_creds) |
1645 { | 1647 { |
1646 int dtls = 0; | 1648 int dtls = 0; |