mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-06-11 01:40:05 -04:00
Fixed issue involving an #ifdef in a macro reference that breaks early gcc
compilers. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3903 e7ae566f-a301-0410-adde-c780ea21d3b5
This commit is contained in:
parent
7a36c43332
commit
763602d3e3
1 changed files with 7 additions and 4 deletions
11
ssl.c
11
ssl.c
|
|
@ -3398,14 +3398,17 @@ key_method_2_read (struct buffer *buf, struct tls_multi *multi, struct tls_sessi
|
|||
|
||||
if ((session->opt->ssl_flags & SSLF_USERNAME_AS_COMMON_NAME))
|
||||
set_common_name (session, up->username);
|
||||
msg (D_HANDSHAKE, "TLS: Username/Password authentication %s for username '%s' %s",
|
||||
#ifdef ENABLE_DEF_AUTH
|
||||
msg (D_HANDSHAKE, "TLS: Username/Password authentication %s for username '%s' %s",
|
||||
ks->auth_deferred ? "deferred" : "succeeded",
|
||||
#else
|
||||
"succeeded",
|
||||
#endif
|
||||
up->username,
|
||||
(session->opt->ssl_flags & SSLF_USERNAME_AS_COMMON_NAME) ? "[CN SET]" : "");
|
||||
#else
|
||||
msg (D_HANDSHAKE, "TLS: Username/Password authentication %s for username '%s' %s",
|
||||
"succeeded",
|
||||
up->username,
|
||||
(session->opt->ssl_flags & SSLF_USERNAME_AS_COMMON_NAME) ? "[CN SET]" : "");
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue