-
Notifications
You must be signed in to change notification settings - Fork 192
Add DTLS 1.2 Mulicast Example. #554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
This commit leaned heavily on Claude.
JacobBarthelmeh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots of build warnings:
bash-3.2$ make
gcc -o mcast-peer mcast-peer.c -Wall -Wextra -Os -lwolfssl -lm -lpthread
mcast-peer.c:186:9: warning: unused variable 'ret' [-Wunused-variable]
int ret;
^
mcast-peer.c:188:9: warning: unused variable 'txSd' [-Wunused-variable]
int txSd = -1;
^
mcast-peer.c:189:9: warning: unused variable 'rxSd' [-Wunused-variable]
int rxSd = -1;
^
mcast-peer.c:190:18: warning: unused variable 'ctx' [-Wunused-variable]
WOLFSSL_CTX* ctx = NULL;
^
mcast-peer.c:191:14: warning: unused variable 'sslTx' [-Wunused-variable]
WOLFSSL* sslTx = NULL;
^
mcast-peer.c:192:14: warning: unused variable 'sslRx' [-Wunused-variable]
WOLFSSL* sslRx = NULL;
^
mcast-peer.c:193:24: warning: unused variable 'txAddr' [-Wunused-variable]
struct sockaddr_in txAddr;
^
mcast-peer.c:194:9: warning: unused variable 'i' [-Wunused-variable]
int i;
^
mcast-peer.c:197:19: warning: unused variable 'pms' [-Wunused-variable]
unsigned char pms[PMS_SIZE];
^
mcast-peer.c:198:19: warning: unused variable 'clientRandom' [-Wunused-variable]
unsigned char clientRandom[RANDOM_SIZE];
^
mcast-peer.c:199:19: warning: unused variable 'serverRandom' [-Wunused-variable]
unsigned char serverRandom[RANDOM_SIZE];
^
mcast-peer.c:201:19: warning: unused variable 'suite' [-Wunused-variable]
unsigned char suite[2] = { 0x00, 0xFE };
^
mcast-peer.c:203:12: warning: unused variable 'lastSend' [-Wunused-variable]
time_t lastSend = 0;
^
mcast-peer.c:204:9: warning: unused variable 'msgCount' [-Wunused-variable]
int msgCount = 0;
^
mcast-peer.c:76:12: warning: unused function 'setup_tx_socket' [-Wunused-function]
static int setup_tx_socket(struct sockaddr_in* txAddr)
^
mcast-peer.c:121:12: warning: unused function 'setup_rx_socket' [-Wunused-function]
static int setup_rx_socket(void)
^
16 warnings generated.
| CC = gcc | ||
|
|
||
| # Path to wolfSSL source directory (adjust as needed) | ||
| WOLFSSL_DIR = ../../wolfssl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be looking at /usr/local/include and usr/local/lib by default for wolfSSL headers and library. Making the attempt to use an installed wolfSSL library. Also use -lwolfssl to link against a dynamic library by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
This commit leaned heavily on Claude.