windows-nt/Source/XPSP1/NT/inetsrv/iis/admin/certwiz/strutil.cpp
2020-09-26 16:20:57 +08:00

30 lines
542 B
C++

#include "stdafx.h"
#include "strutil.h"
BOOL IsValidX500Chars(CString csStringToCheck)
{
BOOL iReturn = TRUE;
if (csStringToCheck.IsEmpty())
{
goto IsValidX500Chars_Exit;
}
// check if the string has any commas or semi colons
if (csStringToCheck.Find(_T(',')) != -1)
{
iReturn = FALSE;
goto IsValidX500Chars_Exit;
}
if (csStringToCheck.Find(_T(';')) != -1)
{
iReturn = FALSE;
goto IsValidX500Chars_Exit;
}
IsValidX500Chars_Exit:
return iReturn;
}