aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/tlsopenssl/tls_bio.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-12-16 17:05:56 -0800
committerDave Barach <openvpp@barachs.net>2020-12-18 22:28:03 +0000
commit5b8b1aec213baf65d3051c849f5f3deff37d06b5 (patch)
treecfdcaa17dad3c48b27c8e358fbb4b6b53e3e9523 /src/plugins/tlsopenssl/tls_bio.h
parent8b60fb0fe6e29aac1847c0b381c0f84165b27b61 (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_bio.h')
-rw-r--r--src/plugins/tlsopenssl/tls_bio.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/plugins/tlsopenssl/tls_bio.h b/src/plugins/tlsopenssl/tls_bio.h
new file mode 100644
index 00000000000..b9f3c5384b9
--- /dev/null
+++ b/src/plugins/tlsopenssl/tls_bio.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2020 Cisco and/or its affiliates.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef SRC_PLUGINS_TLSOPENSSL_TLS_BIO_H_
+#define SRC_PLUGINS_TLSOPENSSL_TLS_BIO_H_
+
+#include <vnet/session/session_types.h>
+
+BIO *BIO_new_tls (session_handle_t sh);
+
+#endif /* SRC_PLUGINS_TLSOPENSSL_TLS_BIO_H_ */
+
+/*
+ * fd.io coding-style-patch-verification: ON
+ *
+ * Local Variables:
+ * eval: (c-set-style "gnu")
+ * End:
+ */