0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00

Minor fix to profile autologin detection.

Android version 0.901.
This commit is contained in:
James Yonan 2012-03-20 14:48:52 +00:00
parent d4386a1d72
commit 8800506ed3

View File

@ -37,10 +37,10 @@ namespace openvpn {
// and we have no way of knowing if they are autologin unless
// we examine their cert, which requires accessing the system-level
// cert store on the client. For now, we are going to assume
// that External PKI profiles from the AS are always userlogin.
const Option* as = options.get_ptr("AUTOLOGIN_SPEC");
if (as)
ret = false;
// that External PKI profiles from the AS are always userlogin,
// unless explicitly overriden by AUTOLOGIN above.
if (is_external_pki(options))
return false;
}
return ret;
}