crypt32: Support more types in CertRDNToStr.

This commit is contained in:
Juan Lang 2006-08-01 17:15:14 -07:00 committed by Alexandre Julliard
parent d93a1c1e05
commit 5af2b06d47
1 changed files with 12 additions and 0 deletions

View File

@ -37,8 +37,14 @@ DWORD WINAPI CertRDNValueToStrA(DWORD dwValueType, PCERT_RDN_VALUE_BLOB pValue,
{ {
case CERT_RDN_ANY_TYPE: case CERT_RDN_ANY_TYPE:
break; break;
case CERT_RDN_NUMERIC_STRING:
case CERT_RDN_PRINTABLE_STRING: case CERT_RDN_PRINTABLE_STRING:
case CERT_RDN_TELETEX_STRING:
case CERT_RDN_VIDEOTEX_STRING:
case CERT_RDN_IA5_STRING: case CERT_RDN_IA5_STRING:
case CERT_RDN_GRAPHIC_STRING:
case CERT_RDN_VISIBLE_STRING:
case CERT_RDN_GENERAL_STRING:
if (!psz || !csz) if (!psz || !csz)
ret = pValue->cbData; ret = pValue->cbData;
else else
@ -79,8 +85,14 @@ DWORD WINAPI CertRDNValueToStrW(DWORD dwValueType, PCERT_RDN_VALUE_BLOB pValue,
{ {
case CERT_RDN_ANY_TYPE: case CERT_RDN_ANY_TYPE:
break; break;
case CERT_RDN_NUMERIC_STRING:
case CERT_RDN_PRINTABLE_STRING: case CERT_RDN_PRINTABLE_STRING:
case CERT_RDN_TELETEX_STRING:
case CERT_RDN_VIDEOTEX_STRING:
case CERT_RDN_IA5_STRING: case CERT_RDN_IA5_STRING:
case CERT_RDN_GRAPHIC_STRING:
case CERT_RDN_VISIBLE_STRING:
case CERT_RDN_GENERAL_STRING:
if (!psz || !csz) if (!psz || !csz)
ret = pValue->cbData; ret = pValue->cbData;
else else