SUPPORT-9482. Отключено автоматическое добавление кавычек вокруг значений в DN (Distinguished Name) сертификата
This commit is contained in:
parent
6929ecbf56
commit
b09ade7bf4
1 changed files with 8 additions and 4 deletions
|
|
@ -910,10 +910,12 @@ get_subject_name(PCCERT_CONTEXT cert, /*out*/ char **subject_name)
|
||||||
{
|
{
|
||||||
LOG_TRACE("get_subject_name enter");
|
LOG_TRACE("get_subject_name enter");
|
||||||
|
|
||||||
|
DWORD dwFlags = CERT_X500_NAME_STR | CERT_NAME_STR_NO_QUOTING_FLAG;
|
||||||
|
|
||||||
DWORD len = cp_function_list.CertNameToStr(
|
DWORD len = cp_function_list.CertNameToStr(
|
||||||
cert->dwCertEncodingType,
|
cert->dwCertEncodingType,
|
||||||
&cert->pCertInfo->Subject,
|
&cert->pCertInfo->Subject,
|
||||||
CERT_X500_NAME_STR,
|
dwFlags,
|
||||||
NULL,
|
NULL,
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
@ -927,7 +929,7 @@ get_subject_name(PCCERT_CONTEXT cert, /*out*/ char **subject_name)
|
||||||
cp_function_list.CertNameToStr(
|
cp_function_list.CertNameToStr(
|
||||||
cert->dwCertEncodingType,
|
cert->dwCertEncodingType,
|
||||||
&cert->pCertInfo->Subject,
|
&cert->pCertInfo->Subject,
|
||||||
CERT_X500_NAME_STR,
|
dwFlags,
|
||||||
*subject_name,
|
*subject_name,
|
||||||
len
|
len
|
||||||
);
|
);
|
||||||
|
|
@ -948,10 +950,12 @@ get_issuer_name(PCCERT_CONTEXT cert, /*out*/ char **issuer_name)
|
||||||
{
|
{
|
||||||
LOG_TRACE("get_issuer_name enter");
|
LOG_TRACE("get_issuer_name enter");
|
||||||
|
|
||||||
|
DWORD dwFlags = CERT_X500_NAME_STR | CERT_NAME_STR_NO_QUOTING_FLAG;
|
||||||
|
|
||||||
DWORD len = cp_function_list.CertNameToStr(
|
DWORD len = cp_function_list.CertNameToStr(
|
||||||
cert->dwCertEncodingType,
|
cert->dwCertEncodingType,
|
||||||
&cert->pCertInfo->Issuer,
|
&cert->pCertInfo->Issuer,
|
||||||
CERT_X500_NAME_STR,
|
dwFlags,
|
||||||
NULL,
|
NULL,
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
@ -965,7 +969,7 @@ get_issuer_name(PCCERT_CONTEXT cert, /*out*/ char **issuer_name)
|
||||||
cp_function_list.CertNameToStr(
|
cp_function_list.CertNameToStr(
|
||||||
cert->dwCertEncodingType,
|
cert->dwCertEncodingType,
|
||||||
&cert->pCertInfo->Issuer,
|
&cert->pCertInfo->Issuer,
|
||||||
CERT_X500_NAME_STR,
|
dwFlags,
|
||||||
*issuer_name,
|
*issuer_name,
|
||||||
len
|
len
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue