forked from wolfSSL/wolfssl
fixes API visibility
This commit is contained in:
@ -1504,8 +1504,6 @@ static word16 TLSX_SNI_Write(SNI* list, byte* output)
|
|||||||
return offset;
|
return offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NO_WOLFSSL_SERVER
|
|
||||||
|
|
||||||
/** Finds a SNI object in the provided list. */
|
/** Finds a SNI object in the provided list. */
|
||||||
static SNI* TLSX_SNI_Find(SNI *list, byte type)
|
static SNI* TLSX_SNI_Find(SNI *list, byte type)
|
||||||
{
|
{
|
||||||
@ -1517,7 +1515,6 @@ static SNI* TLSX_SNI_Find(SNI *list, byte type)
|
|||||||
return sni;
|
return sni;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** Sets the status of a SNI object. */
|
/** Sets the status of a SNI object. */
|
||||||
static void TLSX_SNI_SetStatus(TLSX* extensions, byte type, byte status)
|
static void TLSX_SNI_SetStatus(TLSX* extensions, byte type, byte status)
|
||||||
{
|
{
|
||||||
@ -1540,8 +1537,6 @@ byte TLSX_SNI_Status(TLSX* extensions, byte type)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* NO_WOLFSSL_SERVER */
|
|
||||||
|
|
||||||
/** Parses a buffer of SNI extensions. */
|
/** Parses a buffer of SNI extensions. */
|
||||||
static int TLSX_SNI_Parse(WOLFSSL* ssl, byte* input, word16 length,
|
static int TLSX_SNI_Parse(WOLFSSL* ssl, byte* input, word16 length,
|
||||||
byte isRequest)
|
byte isRequest)
|
||||||
|
@ -1918,6 +1918,11 @@ WOLFSSL_API void wolfSSL_SNI_SetOptions(WOLFSSL* ssl, unsigned char type,
|
|||||||
unsigned char options);
|
unsigned char options);
|
||||||
WOLFSSL_API void wolfSSL_CTX_SNI_SetOptions(WOLFSSL_CTX* ctx,
|
WOLFSSL_API void wolfSSL_CTX_SNI_SetOptions(WOLFSSL_CTX* ctx,
|
||||||
unsigned char type, unsigned char options);
|
unsigned char type, unsigned char options);
|
||||||
|
WOLFSSL_API int wolfSSL_SNI_GetFromBuffer(
|
||||||
|
const unsigned char* clientHello, unsigned int helloSz,
|
||||||
|
unsigned char type, unsigned char* sni, unsigned int* inOutSz);
|
||||||
|
|
||||||
|
#endif /* NO_WOLFSSL_SERVER */
|
||||||
|
|
||||||
/* SNI status */
|
/* SNI status */
|
||||||
enum {
|
enum {
|
||||||
@ -1931,12 +1936,8 @@ WOLFSSL_API unsigned char wolfSSL_SNI_Status(WOLFSSL* ssl, unsigned char type);
|
|||||||
|
|
||||||
WOLFSSL_API unsigned short wolfSSL_SNI_GetRequest(WOLFSSL *ssl,
|
WOLFSSL_API unsigned short wolfSSL_SNI_GetRequest(WOLFSSL *ssl,
|
||||||
unsigned char type, void** data);
|
unsigned char type, void** data);
|
||||||
WOLFSSL_API int wolfSSL_SNI_GetFromBuffer(
|
|
||||||
const unsigned char* clientHello, unsigned int helloSz,
|
|
||||||
unsigned char type, unsigned char* sni, unsigned int* inOutSz);
|
|
||||||
|
|
||||||
#endif
|
#endif /* HAVE_SNI */
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Application-Layer Protocol Negotiation */
|
/* Application-Layer Protocol Negotiation */
|
||||||
#ifdef HAVE_ALPN
|
#ifdef HAVE_ALPN
|
||||||
|
Reference in New Issue
Block a user