diff --git a/src/ssl.c b/src/ssl.c index 7b9cb1f64..cd86c938a 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -511,8 +511,7 @@ int CyaSSL_CTX_UseCavium(CYASSL_CTX* ctx, int devId) #ifdef HAVE_SNI -int CyaSSL_UseSNI(CYASSL* ssl, unsigned char type, const void* data, - unsigned short size) +int CyaSSL_UseSNI(CYASSL* ssl, byte type, const void* data, word16 size) { if (ssl == NULL) 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); } -int CyaSSL_CTX_UseSNI(CYASSL_CTX* ctx, unsigned char type, const void* data, - unsigned short size) +int CyaSSL_CTX_UseSNI(CYASSL_CTX* ctx, byte type, const void* data, word16 size) { if (ctx == NULL) 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 -void CyaSSL_SNI_SetOptions(CYASSL* ssl, unsigned char type, - unsigned char options) +void CyaSSL_SNI_SetOptions(CYASSL* ssl, byte type, byte options) { if (ssl && ssl->extensions) 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) TLSX_SNI_SetOptions(ctx->extensions, type, options);