summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols/freediameter/files
Commit message (Collapse)AuthorAgeFilesLines
* freediameter: Fix testcnx ptest failureOvidiu Panait2020-07-121-0/+746
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, testcnx ptest fails due to expired CA certificates: Test project /usr/lib64/freeDiameter/ptest ... Start 10: testcnx 10/11 Test #10: testcnx ..........................***Failed 0.12 sec ... <snip> Command: "/usr/lib64/freeDiameter/ptest/testcnx" Directory: /usr/lib64/freeDiameter/ptest "testcnx" start time: Jun 17 10:52 UTC Output: ---------------------------------------------------------- 10:52:43 ERROR ERROR: Invalid parameter '(conn->cc_rcvthr != (pthread_t)((voidd *)0))', 22 10:52:43 ERROR TLS: Remote certificate invalid on socket 6 (Remote: 'localhostt .localdomain')(Connection: '{---T} TCP from [127.0.0.1]:57898 (4<-6)') : 10:52:43 ERROR - The certificate has expired. 10:52:43 ERROR TLS ERROR: in 'ret = gnutls_handshake(conn->cc_tls_para.sessionn )' : Error in the certificate. 10:52:43 FATAL! testcnx.c:867: CHECK FAILED : fd_cnx_handshake(server_side, GNUU TLS_SERVER, ALGO_HANDSHAKE_DEFAULT , NULL, NULL) == 16 != 0 10:52:43 FATAL! FAILED: testcnx.c <end of output> Test time = 0.02 sec <snip> Backport upstream patch [1] to fix this issue. [1] http://www.freediameter.net/hg/freeDiameter/rev/eff5bb332b5a This patch is present in version 1.4.0, so master is not affected. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* freediameter: update the old sctp api checkMingli Yu2018-09-041-0/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The initial sctp api check for freediameter as below: === commit d3c5e991cb532ea09684d69fb4d0d58e9bc39a0c Author: Sebastien Decugis <sdecugis@freediameter.net> Date: Mon Jun 3 12:05:37 2013 +0800 Add some compliancy to RFC6458. Not tested however as Ubuntu does not support this yet [snip] +/* Use old draft-ietf-tsvwg-sctpsocket-17 API ? If not defined, RFC6458 API will be used */ +/* #define OLD_SCTP_SOCKET_API */ + +/* Automatically fallback to old API if some of the new symbols are not defined */ +#if (!defined(SCTP_CONNECTX_4_ARGS) || (!defined(SCTP_RECVRCVINFO)) || (!defined(SCTP_SNDINFO))) +# define OLD_SCTP_SOCKET_API +#endif === SCTP_RECVRCVINFO is defined in <linux/sctp.h>, but <linux/sctp.h> is't included in the source code previouly. So defined(SCTP_RECVRCVINFO) can be 0 and it makes old sctp socket api definition in effect as below: # define OLD_SCTP_SOCKET_API After lksctp-tools upgrade to 1.0.18, there is below commit introduced in lksctp-tools git: === commit 3c8bd0d26b64611c690f33f5802c734b0642c1d8 Author: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Date: Tue Apr 17 20:17:14 2018 -0300 sctp.h: make use kernel UAPI header and with that, remove tons of duplicated declarations. These were lagging behind the kernel header, which is always the most updated one, and as the library is intended to be run only on Linux, there is no reason that we cannot re-use what is in there. That said, this patch drops all duplicated declarations and includes linux/sctp.h to bring them into lksctp-tools. Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> [snip] #include <stdint.h> #include <linux/types.h> #include <sys/socket.h> +#include <linux/sctp.h> [snip] === And above logic make defined(SCTP_RECVRCVINFO) to be 1 and the old sctp socket api macro as below won't be defined. # define OLD_SCTP_SOCKET_API And it encouters below build error: | /build/freediameter/1.2.1-r0/freeDiameter-1.2.1/libfdcore/sctp.c:1262:9: error: 'SCTP_SEND_FAILED_EVENT' undeclared (first use in this function); did you mean 'SCTP_SEND_FAILED'? case SCTP_SEND_FAILED_EVENT: ^~~~~~~~~~~~~~~~~~~~~~ SCTP_SEND_FAILED | /build/freediameter/1.2.1-r0/freeDiameter-1.2.1/libfdcore/sctp.c:1262:9: note: each undeclared identifier is reported only once for each function it appears in | /build/freediameter/1.2.1-r0/freeDiameter-1.2.1/libfdcore/sctp.c:1274:9: error: 'SCTP_NOTIFICATIONS_STOPPED_EVENT' undeclared (first use in this function); did you mean 'SCTP_AUTHENTICATION_EVENT'? case SCTP_NOTIFICATIONS_STOPPED_EVENT: Update the old sctp socket api check to fix the above build error. Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* freediameter: add new recipeJackie Huang2018-01-087-0/+661
freeDiameter is an open source Diameter protocol implementation. It provides an extensible platform for deploying a Diameter network for your Authentication, Authorization and Accounting needs. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>