This is done to allow UTF-8 and restrict the use of control characters
in usernames, passwords, common names, etc.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@7538
e7ae566f-a301-0410-adde-
c780ea21d3b5
return true;
if ((flags & CC_DIGIT) && isdigit (c))
return true;
- if ((flags & CC_PRINT) && (isprint (c) || c >= 0x7f)) /* allow UTF-8 */
+ if ((flags & CC_PRINT) && (c >= 32)) /* allow ascii non-control and UTF-8 */
return true;
if ((flags & CC_PUNCT) && ispunct (c))
return true;