diff options
author | Heiko Hund <heiko.hund@sophos.com> | 2012-09-11 17:34:24 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2012-09-12 15:08:10 +0200 |
commit | e7412ca3eee2f2a2fb0af5acbe968137cfd7e995 (patch) | |
tree | 70909046f97e8c108422b6ada53342bb42be856b /src/openvpn/misc.h | |
parent | 5d4f5435a421299ed047485d8d99bdf9a0d22fd1 (diff) | |
download | openvpn-e7412ca3eee2f2a2fb0af5acbe968137cfd7e995.tar.gz openvpn-e7412ca3eee2f2a2fb0af5acbe968137cfd7e995.tar.xz openvpn-e7412ca3eee2f2a2fb0af5acbe968137cfd7e995.zip |
Add --compat-names option
With this option, users can basically undo the changes of the UTF-8
support commit 5e86fd93779482b90a191f929edebe414cd78a4f. It's here for
short term compatibility and should be removed again as soon as possible.
When OpenSSL is used, the subject strings will be in the proprietary
format again. Generally username, X.509 CN, and X.509 subject will again
be subject to '_' replacemant, unless the "no-remapping" flag is
also specified. That flag ensures compatibility with setups using the
--no-name-remapping option, that has been removed in 2.3.
[v2: More comments related to compat_flags() added by DS plus using
COMPAT_FLAG_QUERY expclit]
[v3: Improved the man page entry for --compat-names, after suggestions
from Bernhard R. Link]
Signed-off-by: Heiko Hund <heiko.hund@sophos.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Acked-by: David Sommerseth <davids@redhat.com>
Message-Id: 1347377664-15462-1-git-send-email-dazo@users.sourceforge.net
URL: http://article.gmane.org/gmane.network.openvpn.devel/7053
Diffstat (limited to 'src/openvpn/misc.h')
-rw-r--r-- | src/openvpn/misc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/openvpn/misc.h b/src/openvpn/misc.h index d4c8e33..b6da3f4 100644 --- a/src/openvpn/misc.h +++ b/src/openvpn/misc.h @@ -368,4 +368,10 @@ void argv_printf_cat (struct argv *a, const char *format, ...) #endif ; +#define COMPAT_FLAG_QUERY 0 /** compat_flags operator: Query for a flag */ +#define COMPAT_FLAG_SET (1<<0) /** compat_flags operator: Set a compat flag */ +#define COMPAT_NAMES (1<<1) /** compat flag: --compat-names set */ +#define COMPAT_NO_NAME_REMAPPING (1<<2) /** compat flag: --compat-names without char remapping */ +bool compat_flag (unsigned int flag); + #endif |