mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
fix examples client DTLS resume
This commit is contained in:
@@ -392,7 +392,8 @@ void client_test(void* args)
|
|||||||
sslResume = CyaSSL_new(ctx);
|
sslResume = CyaSSL_new(ctx);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
CyaSSL_shutdown(ssl);
|
if (doDTLS == 0) /* don't send alert after "break" command */
|
||||||
|
CyaSSL_shutdown(ssl); /* echoserver will interpret as new conn */
|
||||||
CyaSSL_free(ssl);
|
CyaSSL_free(ssl);
|
||||||
CloseSocket(sockfd);
|
CloseSocket(sockfd);
|
||||||
|
|
||||||
@@ -404,7 +405,7 @@ void client_test(void* args)
|
|||||||
sleep(1);
|
sleep(1);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
tcp_connect(&sockfd, host, port);
|
tcp_connect(&sockfd, host, port, doDTLS);
|
||||||
CyaSSL_set_fd(sslResume, sockfd);
|
CyaSSL_set_fd(sslResume, sockfd);
|
||||||
CyaSSL_set_session(sslResume, session);
|
CyaSSL_set_session(sslResume, session);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user