diff options
author | Adriaan de Jong <dejong@fox-it.com> | 2011-06-30 12:37:33 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2011-10-21 14:51:45 +0200 |
commit | 19dd3ef12f45b2c70c0657ea72fbdce5241e45c2 (patch) | |
tree | e840a5c6d385e4aa9031d949157c508484789863 /init.c | |
parent | dd4cdb9ee740527f32198ef27b9901e396e045be (diff) | |
download | openvpn-19dd3ef12f45b2c70c0657ea72fbdce5241e45c2.tar.gz openvpn-19dd3ef12f45b2c70c0657ea72fbdce5241e45c2.tar.xz openvpn-19dd3ef12f45b2c70c0657ea72fbdce5241e45c2.zip |
Refactored: removed global x509_username_field
Moved to tls_options.
Signed-off-by: Adriaan de Jong <dejong@fox-it.com>
Acked-by: James Yonan <james@openvpn.net>
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2211,6 +2211,11 @@ do_init_crypto_tls (struct context *c, const unsigned int flags) memmove (to.remote_cert_ku, options->remote_cert_ku, sizeof (to.remote_cert_ku)); to.remote_cert_eku = options->remote_cert_eku; to.verify_hash = options->verify_hash; +#ifdef ENABLE_X509ALTUSERNAME + to.x509_username_field = (char *) options->x509_username_field; +#else + to.x509_username_field = X509_USERNAME_FIELD_DEFAULT; +#endif to.es = c->c2.es; #ifdef ENABLE_DEBUG |