forked from wolfSSL/wolfssl
compatability and sniffer.c
This commit is contained in:
19
cyassl/ssl.h
19
cyassl/ssl.h
@@ -221,6 +221,12 @@
|
|||||||
#define CyaSSL_CTX_set_session_cache_mode wolfSSL_CTX_set_session_cache_mode
|
#define CyaSSL_CTX_set_session_cache_mode wolfSSL_CTX_set_session_cache_mode
|
||||||
|
|
||||||
/* Callbacks */
|
/* Callbacks */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Empty commment denotes not listed in CyaSSL Manual
|
||||||
|
* (soon to be wolfSSL Manual)
|
||||||
|
*/
|
||||||
|
|
||||||
#define CyaSSL_accept_ex wolfSSL_accept_ex
|
#define CyaSSL_accept_ex wolfSSL_accept_ex
|
||||||
#define CyaSSL_SetIORecv wolfSSL_SetIORecv
|
#define CyaSSL_SetIORecv wolfSSL_SetIORecv
|
||||||
#define CyaSSL_SetIOSend wolfSSL_SetIOSend
|
#define CyaSSL_SetIOSend wolfSSL_SetIOSend
|
||||||
@@ -256,6 +262,11 @@
|
|||||||
#define CyaSSL_SetDecryptVerifyCtx wolfSSL_SetDecryptVerifyCtx
|
#define CyaSSL_SetDecryptVerifyCtx wolfSSL_SetDecryptVerifyCtx
|
||||||
#define CyaSSL_GetDecryptVerifyCtx wolfSSL_GetDecryptVerifyCtx
|
#define CyaSSL_GetDecryptVerifyCtx wolfSSL_GetDecryptVerifyCtx
|
||||||
#define CyaSSL_CTX_SetDecryptVerifyCb wolfSSL_CTX_SetDecryptVerifyCb
|
#define CyaSSL_CTX_SetDecryptVerifyCb wolfSSL_CTX_SetDecryptVerifyCb
|
||||||
|
#define CyaSSL_CTX_use_psk_identity_hint wolfSSL_CTX_use_psk_identity_hint /**/
|
||||||
|
#define CyaSSL_CTX_set_psk_client_callback \
|
||||||
|
wolfSSL_CTX_set_psk_client_callback /**/
|
||||||
|
#define CyaSSL_CTX_set_psk_server_callback \
|
||||||
|
wolfSSL_CTX_set_psk_server_callback /**/
|
||||||
|
|
||||||
/* Error Handling and Debugging*/
|
/* Error Handling and Debugging*/
|
||||||
#define CyaSSL_get_error wolfSSL_get_error
|
#define CyaSSL_get_error wolfSSL_get_error
|
||||||
@@ -269,6 +280,14 @@
|
|||||||
#define CyaSSL_ERR_print_errors_fp wolfSSL_ERR_print_errors_fp
|
#define CyaSSL_ERR_print_errors_fp wolfSSL_ERR_print_errors_fp
|
||||||
|
|
||||||
/* OCSP and CRL */
|
/* OCSP and CRL */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Empty commment denotes not listed in CyaSSL Manual
|
||||||
|
* (soon to be wolfSSL Manual)
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define CYASSL_CRL_MONITOR WOLFSSL_CRL_MONITOR /**/
|
||||||
|
#define CYASSL_CRL_START_MON WOLFSSL_CRL_START_MON /**/
|
||||||
#define CYASSL_OCSP_NO_NONCE WOLFSSL_OCSP_NO_NONCE /**/
|
#define CYASSL_OCSP_NO_NONCE WOLFSSL_OCSP_NO_NONCE /**/
|
||||||
#define CYASSL_OCSP_URL_OVERRIDE WOLFSSL_OCSP_URL_OVERRIDE
|
#define CYASSL_OCSP_URL_OVERRIDE WOLFSSL_OCSP_URL_OVERRIDE
|
||||||
|
|
||||||
|
@@ -1865,31 +1865,31 @@ static int Decrypt(SSL* ssl, byte* output, const byte* input, word32 sz)
|
|||||||
|
|
||||||
#ifdef BUILD_DES3
|
#ifdef BUILD_DES3
|
||||||
case wolfssl_triple_des:
|
case wolfssl_triple_des:
|
||||||
ret = Des3_CbcDecrypt(ssl->decrypt.des3, output, input, sz);
|
ret = wc_Des3_CbcDecrypt(ssl->decrypt.des3, output, input, sz);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BUILD_AES
|
#ifdef BUILD_AES
|
||||||
case wolfssl_aes:
|
case wolfssl_aes:
|
||||||
ret = AesCbcDecrypt(ssl->decrypt.aes, output, input, sz);
|
ret = wc_AesCbcDecrypt(ssl->decrypt.aes, output, input, sz);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_HC128
|
#ifdef HAVE_HC128
|
||||||
case wolfssl_hc128:
|
case wolfssl_hc128:
|
||||||
Hc128_Process(ssl->decrypt.hc128, output, input, sz);
|
wc_Hc128_Process(ssl->decrypt.hc128, output, input, sz);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BUILD_RABBIT
|
#ifdef BUILD_RABBIT
|
||||||
case wolfssl_rabbit:
|
case wolfssl_rabbit:
|
||||||
RabbitProcess(ssl->decrypt.rabbit, output, input, sz);
|
wc_RabbitProcess(ssl->decrypt.rabbit, output, input, sz);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CAMELLIA
|
#ifdef HAVE_CAMELLIA
|
||||||
case wolfssl_camellia:
|
case wolfssl_camellia:
|
||||||
CamelliaCbcDecrypt(ssl->decrypt.cam, output, input, sz);
|
wc_CamelliaCbcDecrypt(ssl->decrypt.cam, output, input, sz);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user