forked from wolfSSL/wolfssl
tlsx: expose TLSX_Push
To be able to implement extension in separate compilation unit
This commit is contained in:
@@ -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.
|
* Creates a new extension and pushes it to the provided list.
|
||||||
* Checks for duplicate extensions, keeps the newest.
|
* 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);
|
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);
|
word16 length, byte msgType, int* found);
|
||||||
WOLFSSL_LOCAL int TLSX_Parse(WOLFSSL* ssl, const byte* input, word16 length,
|
WOLFSSL_LOCAL int TLSX_Parse(WOLFSSL* ssl, const byte* input, word16 length,
|
||||||
byte msgType, Suites *suites);
|
byte msgType, Suites *suites);
|
||||||
|
WOLFSSL_LOCAL int TLSX_Push(TLSX** list, TLSX_Type type,
|
||||||
|
const void* data, void* heap);
|
||||||
|
|
||||||
#elif defined(HAVE_SNI) \
|
#elif defined(HAVE_SNI) \
|
||||||
|| defined(HAVE_MAX_FRAGMENT) \
|
|| defined(HAVE_MAX_FRAGMENT) \
|
||||||
|
Reference in New Issue
Block a user