mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
Implement DTLS 1.2 Connection ID (CID)
This commit is contained in:
@@ -4184,10 +4184,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
||||
|
||||
printf("CID extension was negotiated\n");
|
||||
ret = wolfSSL_dtls_cid_get_tx_size(ssl, &receivedCIDSz);
|
||||
if (ret != WOLFSSL_SUCCESS)
|
||||
err_sys("Can't get negotiated DTLS CID size\n");
|
||||
|
||||
if (receivedCIDSz > 0) {
|
||||
if (ret == WOLFSSL_SUCCESS && receivedCIDSz > 0) {
|
||||
ret = wolfSSL_dtls_cid_get_tx(ssl, receivedCID,
|
||||
DTLS_CID_BUFFER_SIZE - 1);
|
||||
if (ret != WOLFSSL_SUCCESS)
|
||||
|
@@ -3595,10 +3595,7 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
||||
unsigned int receivedCIDSz;
|
||||
printf("CID extension was negotiated\n");
|
||||
ret = wolfSSL_dtls_cid_get_tx_size(ssl, &receivedCIDSz);
|
||||
if (ret != WOLFSSL_SUCCESS)
|
||||
err_sys("Can't get negotiated DTLS CID size\n");
|
||||
|
||||
if (receivedCIDSz > 0) {
|
||||
if (ret == WOLFSSL_SUCCESS && receivedCIDSz > 0) {
|
||||
ret = wolfSSL_dtls_cid_get_tx(ssl, receivedCID,
|
||||
DTLS_CID_BUFFER_SIZE - 1);
|
||||
if (ret != WOLFSSL_SUCCESS)
|
||||
|
Reference in New Issue
Block a user