Browse code

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

james authored on 2009/01/28 06:18:51
Showing 1 changed files
... ...
@@ -3398,14 +3398,17 @@ key_method_2_read (struct buffer *buf, struct tls_multi *multi, struct tls_sessi
3398 3398
 	    
3399 3399
 	  if ((session->opt->ssl_flags & SSLF_USERNAME_AS_COMMON_NAME))
3400 3400
 	    set_common_name (session, up->username);
3401
-	  msg (D_HANDSHAKE, "TLS: Username/Password authentication %s for username '%s' %s",
3402 3401
 #ifdef ENABLE_DEF_AUTH
3402
+	  msg (D_HANDSHAKE, "TLS: Username/Password authentication %s for username '%s' %s",
3403 3403
 	       ks->auth_deferred ? "deferred" : "succeeded",
3404
+	       up->username,
3405
+	       (session->opt->ssl_flags & SSLF_USERNAME_AS_COMMON_NAME) ? "[CN SET]" : "");
3404 3406
 #else
3407
+	  msg (D_HANDSHAKE, "TLS: Username/Password authentication %s for username '%s' %s",
3405 3408
 	       "succeeded",
3406
-#endif
3407 3409
 	       up->username,
3408 3410
 	       (session->opt->ssl_flags & SSLF_USERNAME_AS_COMMON_NAME) ? "[CN SET]" : "");
3411
+#endif
3409 3412
 	}
3410 3413
       else
3411 3414
 	{