name to be validated will be in the \a name_src member. The\r
buffer will be NULL terminated with a maximum limit of\r
KCDB_IDENT_MAXCCH_NAME characters including the terminating\r
- NULL, consisting only of characters in KCDB_IDENT_VALID_CHARS\r
+ NULL.\r
The \a result member should be set to one of the following\r
depending on the result of the validation:\r
\r
before calling the identity provider */\r
if(FAILED(StringCchLength(name, KCDB_IDENT_MAXCCH_NAME, &cch)))\r
return KHM_ERROR_TOO_LONG;\r
- if(wcsspn(name, KCDB_IDENT_VALID_CHARS) != cch)\r
- return KHM_ERROR_INVALID_NAME;\r
\r
EnterCriticalSection(&cs_ident);\r
if(kcdb_ident_sub != NULL) {\r
khm_size cch;\r
\r
if(cb_name_out == 0 ||\r
- FAILED(StringCchLength(name_in, KCDB_IDENT_MAXCCH_NAME, &cch)) ||\r
- wcsspn(name_in, KCDB_IDENT_VALID_CHARS) != cch)\r
+ FAILED(StringCchLength(name_in, KCDB_IDENT_MAXCCH_NAME, &cch)))\r
return KHM_ERROR_INVALID_NAME;\r
\r
EnterCriticalSection(&cs_ident);\r
name */\r
#define KCDB_IDENT_MAXCB_NAME (sizeof(wchar_t) * KCDB_IDENT_MAXCCH_NAME)\r
\r
-/*! \brief Valid characters in an identity name */\r
-#define KCDB_IDENT_VALID_CHARS L"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ._@-/"\r
-\r
/*!\r
\name Flags for identities */\r
/*@{*/\r