Closed
Description
Version
latest master
Description
Hello,
I tried compiling the server-dtls-demux example and encountered the following compilation error:
server-dtls-demux.c: In function ‘findConn’:
server-dtls-demux.c:561:37: warning: passing argument 3 of ‘wolfSSL_dtls_cid_parse’ makes integer from pointer without a cast [-Wint-conversion]
561 | wolfSSL_dtls_cid_parse(msg, sz, &msgCid, CID_SIZE);
| ^~~~~~~
| |
| const unsigned char **
/usr/local/include/wolfssl/ssl.h:5942:42: note: expected ‘unsigned int’ but argument is of type ‘const unsigned char **’
5942 | unsigned int msgSz, unsigned int cidSz);
| ~~~~~~~~~~~~~^~~~~
server-dtls-demux.c:561:5: error: too many arguments to function ‘wolfSSL_dtls_cid_parse’
561 | wolfSSL_dtls_cid_parse(msg, sz, &msgCid, CID_SIZE);
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/wolfssl/ssl.h:5941:34: note: declared here
5941 | WOLFSSL_API const unsigned char* wolfSSL_dtls_cid_parse(const unsigned char* msg,
| ^~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:43 : server-dtls-demux] Erreur 1
After changing line 561 from :
wolfSSL_dtls_cid_parse(msg, sz, &msgCid, CID_SIZE);
To :
msgCid = wolfSSL_dtls_cid_parse(msg, sz, CID_SIZE);
I was able to compile successfully and run the server.
Best regards
Metadata
Metadata
Assignees
Labels
No labels