Topic: How to add new Key Share extension into New Session Ticket packet?
Hello everyone,
I am using the client/server example and specifically TLS 1.3
I would like to customize the New Session Ticket packet from the initial handshake, by adding an extra extension to it which will provide a DH public key parameter.
I am currently in the function
SendTls13NewSessionTicket
of the tls13.c file right before the
ret = SendBuffered(ssl);
line. I have tried add a new extension to my New Session Ticket message with:
wolfSSL_UseKeyShare
TLSX_KeyShare_Use
TLSX_KeyShare_Parse
but unfortunately I get for all a segmentation fault for all of them.
Why do I have this issue and how can I add that ?
Thank you in advance