summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-12-29 07:47:47 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-12-29 07:47:47 +0000
commite5d281cf2fb283478a60948b2fda69488c0ad75b (patch)
tree118270c8c3a237472610f2ecde7d92fd7f14a215 /init.c
parentcbc0dada77ee730c7e2321f3c9b19d6df1e205cc (diff)
downloadopenvpn-e5d281cf2fb283478a60948b2fda69488c0ad75b.tar.gz
openvpn-e5d281cf2fb283478a60948b2fda69488c0ad75b.tar.xz
openvpn-e5d281cf2fb283478a60948b2fda69488c0ad75b.zip
Fixed bug with tls-auth and key-direction parameter
which was introduced in r844. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@865 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'init.c')
-rw-r--r--init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.c b/init.c
index 8123362..3b9931a 100644
--- a/init.c
+++ b/init.c
@@ -1402,7 +1402,7 @@ do_init_crypto_tls_c1 (struct context *c)
/* TLS handshake authentication (--tls-auth) */
if (options->tls_auth_file)
{
- unsigned int flags = options->key_direction ? GHK_KEY_DIR : 0;
+ unsigned int flags = 0;
const char *file = options->tls_auth_file;
#if ENABLE_INLINE_FILES
@@ -1415,6 +1415,7 @@ do_init_crypto_tls_c1 (struct context *c)
get_tls_handshake_key (&c->c1.ks.key_type,
&c->c1.ks.tls_auth_key,
file,
+ options->key_direction,
flags);
}