forked from wolfSSL/wolfssl
shrinking function names
This commit is contained in:
13
src/ssl.c
13
src/ssl.c
@ -511,8 +511,7 @@ int CyaSSL_CTX_UseCavium(CYASSL_CTX* ctx, int devId)
|
|||||||
|
|
||||||
#ifdef HAVE_SNI
|
#ifdef HAVE_SNI
|
||||||
|
|
||||||
int CyaSSL_UseSNI(CYASSL* ssl, unsigned char type, const void* data,
|
int CyaSSL_UseSNI(CYASSL* ssl, byte type, const void* data, word16 size)
|
||||||
unsigned short size)
|
|
||||||
{
|
{
|
||||||
if (ssl == NULL)
|
if (ssl == NULL)
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
@ -520,8 +519,7 @@ int CyaSSL_UseSNI(CYASSL* ssl, unsigned char type, const void* data,
|
|||||||
return TLSX_UseSNI(&ssl->extensions, type, data, size);
|
return TLSX_UseSNI(&ssl->extensions, type, data, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
int CyaSSL_CTX_UseSNI(CYASSL_CTX* ctx, unsigned char type, const void* data,
|
int CyaSSL_CTX_UseSNI(CYASSL_CTX* ctx, byte type, const void* data, word16 size)
|
||||||
unsigned short size)
|
|
||||||
{
|
{
|
||||||
if (ctx == NULL)
|
if (ctx == NULL)
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
@ -530,14 +528,13 @@ int CyaSSL_CTX_UseSNI(CYASSL_CTX* ctx, unsigned char type, const void* data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NO_CYASSL_SERVER
|
#ifndef NO_CYASSL_SERVER
|
||||||
void CyaSSL_SNI_SetOptions(CYASSL* ssl, unsigned char type,
|
void CyaSSL_SNI_SetOptions(CYASSL* ssl, byte type, byte options)
|
||||||
unsigned char options)
|
|
||||||
{
|
{
|
||||||
if (ssl && ssl->extensions)
|
if (ssl && ssl->extensions)
|
||||||
TLSX_SNI_SetOptions(ssl->extensions, type, options);
|
TLSX_SNI_SetOptions(ssl->extensions, type, options);
|
||||||
}
|
}
|
||||||
void CyaSSL_CTX_SNI_SetOptions(CYASSL_CTX* ctx, unsigned char type,
|
|
||||||
unsigned char options)
|
void CyaSSL_CTX_SNI_SetOptions(CYASSL_CTX* ctx, byte type, byte options)
|
||||||
{
|
{
|
||||||
if (ctx && ctx->extensions)
|
if (ctx && ctx->extensions)
|
||||||
TLSX_SNI_SetOptions(ctx->extensions, type, options);
|
TLSX_SNI_SetOptions(ctx->extensions, type, options);
|
||||||
|
Reference in New Issue
Block a user