ready for publishing
parent
c5ea88e69a
commit
f7d8207597
|
@ -118,7 +118,7 @@ void AwaitDGram()
|
||||||
clientfd = udp_read_connect(listenfd);
|
clientfd = udp_read_connect(listenfd);
|
||||||
|
|
||||||
/* Create the CYASSL Object */
|
/* Create the CYASSL Object */
|
||||||
if (( ssl = CyaSSL_new(ctx) ) == NULL) {
|
if (( ssl = CyaSSL_new(ctx)) == NULL) {
|
||||||
printf("CyaSSL_new error.\n");
|
printf("CyaSSL_new error.\n");
|
||||||
cleanup = 1;
|
cleanup = 1;
|
||||||
}
|
}
|
||||||
|
@ -307,7 +307,7 @@ int main(int argc, char** argv)
|
||||||
CyaSSL_Init(); /* Initialize CyaSSL */
|
CyaSSL_Init(); /* Initialize CyaSSL */
|
||||||
|
|
||||||
/* Set ctx to DTLS 1.2 */
|
/* Set ctx to DTLS 1.2 */
|
||||||
if ( (ctx = CyaSSL_CTX_new(CyaDTLSv1_2_server_method())) == NULL) {
|
if ((ctx = CyaSSL_CTX_new(CyaDTLSv1_2_server_method())) == NULL) {
|
||||||
fprintf(stderr, "CyaSSL_CTX_new error.\n");
|
fprintf(stderr, "CyaSSL_CTX_new error.\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue