Skip to content
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

Implement DTLS 1.2 Connection ID (CID) #7995

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

julek-wolfssl
Copy link
Member

No description provided.

@julek-wolfssl
Copy link
Member Author

julek-wolfssl commented Sep 20, 2024

Retest this please.

Copy link
Contributor

@rizlik rizlik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the refactor of doing ETM MAC size calculation in a single place, but I found the re-use of keys.PadSz a little misleading. Can you think of a re-name or using an extra variable?

src/dtls.c Outdated Show resolved Hide resolved
src/dtls.c Outdated Show resolved Hide resolved
src/internal.c Outdated Show resolved Hide resolved
src/internal.c Outdated Show resolved Hide resolved
src/internal.c Outdated Show resolved Hide resolved
src/internal.c Outdated Show resolved Hide resolved
src/tls.c Show resolved Hide resolved
wolfssl/internal.h Outdated Show resolved Hide resolved
src/dtls.c Outdated Show resolved Hide resolved
src/internal.c Show resolved Hide resolved
src/dtls.c Outdated Show resolved Hide resolved
@julek-wolfssl
Copy link
Member Author

keys.PadSz is used in a lot of places and I don't want to change that here. If you really want a new name I would propose to do it in a new PR.

rizlik
rizlik previously approved these changes Sep 20, 2024
Copy link
Contributor

@rizlik rizlik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, LGTM

@rizlik rizlik assigned wolfSSL-Bot and unassigned rizlik Sep 20, 2024
Copy link
Contributor

@JacobBarthelmeh JacobBarthelmeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to have one more person review this pull request too.

When trying to build using the configure :./configure --enable-dtls --enable-dtlscid --enable-dtls13

tests/api.c:94360:25: error: implicit declaration of function ‘wolfSSL_Rehandshake’; did you mean ‘wolfSSL_BIO_do_handshake’? [-Werror=implicit-function-declaration]
94360 |             ExpectIntEQ(wolfSSL_Rehandshake(ssl_c), -1);
      |                         ^~~~~~~~~~~~~~~~~~~
./tests/unit.h:188:24: note: in definition of macro ‘ExpectInt’

Adding secure-renegotiation ./configure --enable-dtls --enable-dtlscid --enable-dtls13 --enable-secure-renegotiation results in :

   911: test_dtls_old_seq_number                            : passed (  0.00351)
   912: test_dtls12_basic_connection_id                     :
Testing AES128-SHA256 run #0 ... 
ERROR - tests/api.c line 94241 failed with:
    expected: wolfSSL_set_cipher_list(ssl_c, params[i]) == 1
    result:   0 != 1

failed
Testing AES128-SHA256 run #1 ... failed

@rizlik
Copy link
Contributor

rizlik commented Sep 24, 2024

retest this please

@JacobBarthelmeh
Copy link
Contributor

@SparkiDev please give this an additional review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants