diff options
author | Florin Coras <fcoras@cisco.com> | 2020-12-16 17:05:56 -0800 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2020-12-18 22:28:03 +0000 |
commit | 5b8b1aec213baf65d3051c849f5f3deff37d06b5 (patch) | |
tree | cfdcaa17dad3c48b27c8e358fbb4b6b53e3e9523 /src/plugins/tlsopenssl/tls_openssl.h | |
parent | 8b60fb0fe6e29aac1847c0b381c0f84165b27b61 (diff) |
tls: add custom openssl bio
The bio interacts directly with the session so it avoids using an
intermediary mem bio and, implicitly, higher memory consumption and an
extra memcpy.
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ifb675cfd12df86396a7a738a6cd4d0882c69ad2f
Diffstat (limited to 'src/plugins/tlsopenssl/tls_openssl.h')
-rw-r--r-- | src/plugins/tlsopenssl/tls_openssl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/tlsopenssl/tls_openssl.h b/src/plugins/tlsopenssl/tls_openssl.h index 5744dcadb3a..16b256d0ceb 100644 --- a/src/plugins/tlsopenssl/tls_openssl.h +++ b/src/plugins/tlsopenssl/tls_openssl.h @@ -21,6 +21,9 @@ #include <vpp/app/version.h> #include <vnet/tls/tls.h> +#define TLSO_CTRL_BYTES 1000 +#define TLSO_MIN_ENQ_SPACE (1 << 16) + typedef struct tls_ctx_openssl_ { tls_ctx_t ctx; /**< First */ |