From 79fad81c32d133a4822c6a06e4082e56b9ca1306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moise=CC=81s=20Guimara=CC=83es?= Date: Thu, 30 May 2013 15:40:10 -0300 Subject: [PATCH] shrinking function names --- src/ssl.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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);