From 8b1a00ca4be11f03238c27b0f9a54573b707ba89 Mon Sep 17 00:00:00 2001 From: Steffan Karger Date: Sun, 7 Feb 2016 20:47:12 +0100 Subject: Move key_ctx_bi into crypto_options The encrypt and decrypt routines use struct crypto_options as their main information source. A struct crypto_options would have a pointer to a struct key_ctx_bi, which had to be updated at the correct moments to keep them correct. Instead of doing this administration, just put the struct key_ctx_bi inside crypto_options. Makes the code a little simpler too. Signed-off-by: Steffan Karger Acked-by: Arne Schwabe Message-Id: <1454874438-5081-5-git-send-email-steffan@karger.me> URL: http://article.gmane.org/gmane.network.openvpn.devel/11078 Signed-off-by: Gert Doering --- src/openvpn/ssl.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/openvpn/ssl.h') diff --git a/src/openvpn/ssl.h b/src/openvpn/ssl.h index e9d0f28..20991cc 100644 --- a/src/openvpn/ssl.h +++ b/src/openvpn/ssl.h @@ -136,7 +136,6 @@ */ struct tls_auth_standalone { - struct key_ctx_bi tls_auth_key; struct crypto_options tls_auth_options; struct frame frame; }; -- cgit v1.1