tlsx: expose TLSX_Push

To be able to implement extension in separate compilation unit
This commit is contained in:
Marco Oliverio 2022-08-10 16:40:57 +02:00
parent bf9f4b88e4
commit 171af05e96
2 changed files with 3 additions and 1 deletions

View File

@ -1307,7 +1307,7 @@ static TLSX* TLSX_New(TLSX_Type type, const void* data, void* heap)
* Creates a new extension and pushes it to the provided list.
* Checks for duplicate extensions, keeps the newest.
*/
static int TLSX_Push(TLSX** list, TLSX_Type type, const void* data, void* heap)
int TLSX_Push(TLSX** list, TLSX_Type type, const void* data, void* heap)
{
TLSX* extension = TLSX_New(type, data, heap);

View File

@ -2497,6 +2497,8 @@ WOLFSSL_LOCAL int TLSX_ParseVersion(WOLFSSL* ssl, const byte* input,
word16 length, byte msgType, int* found);
WOLFSSL_LOCAL int TLSX_Parse(WOLFSSL* ssl, const byte* input, word16 length,
byte msgType, Suites *suites);
WOLFSSL_LOCAL int TLSX_Push(TLSX** list, TLSX_Type type,
const void* data, void* heap);
#elif defined(HAVE_SNI) \
|| defined(HAVE_MAX_FRAGMENT) \