tlsx: expose TLSX_Push
To be able to implement extension in separate compilation unit
This commit is contained in:
parent
bf9f4b88e4
commit
171af05e96
@ -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);
|
||||
|
||||
|
@ -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) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user