diff options
author | Florin Coras <fcoras@cisco.com> | 2024-05-31 12:04:41 -0700 |
---|---|---|
committer | Florin Coras <fcoras@cisco.com> | 2024-07-09 02:04:49 -0700 |
commit | 3fe610a2aae76263b44864b8239c22951c67e752 (patch) | |
tree | 797fcf0b5a887ad7e62cd7d6fa0ac30fc10c585e /src/vnet/tls/tls.h | |
parent | 129ff04e3c564f040a8c00783ebe7f28cfadcbff (diff) |
tls: refactor vft functionsn to allow for reuse
Type: refactor
Change-Id: I3d7ff64e2e54b113f8d4b26f2dbf5b9c67b80976
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tls/tls.h')
-rw-r--r-- | src/vnet/tls/tls.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vnet/tls/tls.h b/src/vnet/tls/tls.h index 6bd1371b984..38f4c4b8f81 100644 --- a/src/vnet/tls/tls.h +++ b/src/vnet/tls/tls.h @@ -28,6 +28,10 @@ #define TLS_CHUNK_SIZE (1 << 14) #define TLS_CA_CERT_PATH "/etc/ssl/certs/ca-certificates.crt" +#define TLS_INVALID_HANDLE ~0 +#define TLS_IDX_MASK 0x00FFFFFF +#define TLS_ENGINE_TYPE_SHIFT 28 + #if TLS_DEBUG #define TLS_DBG(_lvl, _fmt, _args...) \ if (_lvl <= TLS_DEBUG) \ @@ -148,6 +152,8 @@ typedef struct tls_engine_vft_ int (*ctx_reinit_cachain) (void); } tls_engine_vft_t; +extern tls_engine_vft_t *tls_vfts; + tls_main_t *vnet_tls_get_main (void); void tls_register_engine (const tls_engine_vft_t * vft, crypto_engine_type_t type); @@ -160,7 +166,6 @@ int tls_notify_app_connected (tls_ctx_t * ctx, session_error_t err); void tls_notify_app_enqueue (tls_ctx_t * ctx, session_t * app_session); void tls_notify_app_io_error (tls_ctx_t *ctx); void tls_disconnect_transport (tls_ctx_t * ctx); -int tls_reinit_ca_chain (crypto_engine_type_t tls_engine_id); void tls_add_postponed_ho_cleanups (u32 ho_index); void tls_flush_postponed_ho_cleanups (); |