Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e987ecc3
Commit
e987ecc3
authored
Nov 14, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Nov 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Correct heading for a certificate issuer in a CERT_AUTHORITY_KEY_ID2.
parent
6555ea26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
10 deletions
+23
-10
crypt32_En.rc
dlls/crypt32/crypt32_En.rc
+1
-1
object.c
dlls/crypt32/object.c
+22
-9
No files found.
dlls/crypt32/crypt32_En.rc
View file @
e987ecc3
...
...
@@ -176,7 +176,7 @@ STRINGTABLE DISCARDABLE
STRINGTABLE DISCARDABLE
{
IDS_KEY_ID "KeyID="
IDS_CERT_ISSUER "Certificate Issuer
:
"
IDS_CERT_ISSUER "Certificate Issuer"
IDS_CERT_SERIAL_NUMBER "Certificate Serial Number="
IDS_ALT_NAME_OTHER_NAME "Other Name="
IDS_ALT_NAME_RFC822_NAME "Email Address="
...
...
dlls/crypt32/object.c
View file @
e987ecc3
...
...
@@ -990,17 +990,32 @@ static BOOL CRYPT_FormatAltNameInfo(DWORD dwFormatStrType, DWORD indentLevel,
return
ret
;
}
static
const
WCHAR
colonCrlf
[]
=
{
':'
,
'\r'
,
'\n'
,
0
};
static
const
WCHAR
colonSep
[]
=
{
':'
,
' '
,
0
};
static
BOOL
CRYPT_FormatCertIssuer
(
DWORD
dwFormatStrType
,
CERT_ALT_NAME_INFO
*
issuer
,
LPWSTR
str
,
DWORD
*
pcbStr
)
{
WCHAR
buf
[
MAX_STRING_RESOURCE_LEN
];
DWORD
bytesNeeded
;
DWORD
bytesNeeded
,
sepLen
;
LPCWSTR
sep
;
BOOL
ret
;
LoadStringW
(
hInstance
,
IDS_CERT_ISSUER
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]));
ret
=
CRYPT_FormatAltNameInfo
(
dwFormatStrType
,
0
,
issuer
,
NULL
,
ret
=
CRYPT_FormatAltNameInfo
(
dwFormatStrType
,
1
,
issuer
,
NULL
,
&
bytesNeeded
);
bytesNeeded
+=
strlenW
(
buf
)
*
sizeof
(
WCHAR
);
if
(
dwFormatStrType
&
CRYPT_FORMAT_STR_MULTI_LINE
)
{
sep
=
colonCrlf
;
sepLen
=
strlenW
(
colonCrlf
)
*
sizeof
(
WCHAR
);
}
else
{
sep
=
colonSep
;
sepLen
=
strlenW
(
colonSep
)
*
sizeof
(
WCHAR
);
}
bytesNeeded
+=
sepLen
;
if
(
ret
)
{
if
(
!
str
)
...
...
@@ -1015,9 +1030,11 @@ static BOOL CRYPT_FormatCertIssuer(DWORD dwFormatStrType,
{
*
pcbStr
=
bytesNeeded
;
strcpyW
(
str
,
buf
);
str
+=
strlenW
(
str
);
bytesNeeded
-=
strlenW
(
str
)
*
sizeof
(
WCHAR
);
ret
=
CRYPT_FormatAltNameInfo
(
dwFormatStrType
,
0
,
issuer
,
str
,
str
+=
strlenW
(
str
);
strcpyW
(
str
,
sep
);
str
+=
sepLen
/
sizeof
(
WCHAR
);
ret
=
CRYPT_FormatAltNameInfo
(
dwFormatStrType
,
1
,
issuer
,
str
,
&
bytesNeeded
);
}
}
...
...
@@ -1157,16 +1174,14 @@ static BOOL WINAPI CRYPT_FormatAuthorityKeyId2(DWORD dwCertEncodingType,
return
ret
;
}
static
const
WCHAR
colonCrlf
[]
=
{
':'
,
'\r'
,
'\n'
,
0
};
static
WCHAR
aia
[
MAX_STRING_RESOURCE_LEN
];
static
WCHAR
accessMethod
[
MAX_STRING_RESOURCE_LEN
];
static
WCHAR
ocsp
[
MAX_STRING_RESOURCE_LEN
];
static
WCHAR
caIssuers
[
MAX_STRING_RESOURCE_LEN
];
static
WCHAR
unknown
[
MAX_STRING_RESOURCE_LEN
];
static
WCHAR
accessLocation
[
MAX_STRING_RESOURCE_LEN
];
static
BOOL
WINAPI
CRYPT_FormatAuthorityInfoAccess
(
DWORD
dwCertEncodingType
,
static
BOOL
WINAPI
CRYPT_FormatAuthorityInfoAccess
(
DWORD
dwCertEncodingType
,
DWORD
dwFormatType
,
DWORD
dwFormatStrType
,
void
*
pFormatStruct
,
LPCSTR
lpszStructType
,
const
BYTE
*
pbEncoded
,
DWORD
cbEncoded
,
void
*
pbFormat
,
DWORD
*
pcbFormat
)
...
...
@@ -1209,7 +1224,6 @@ static BOOL WINAPI CRYPT_FormatAuthorityInfoAccess(DWORD dwCertEncodingType,
}
else
{
static
const
WCHAR
colonSep
[]
=
{
':'
,
' '
,
0
};
static
const
WCHAR
numFmt
[]
=
{
'%'
,
'd'
,
0
};
static
const
WCHAR
equal
[]
=
{
'='
,
0
};
static
BOOL
stringsLoaded
=
FALSE
;
...
...
@@ -1492,7 +1506,6 @@ static BOOL WINAPI CRYPT_FormatCRLDistPoints(DWORD dwCertEncodingType,
pbEncoded
,
cbEncoded
,
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
&
info
,
&
size
)))
{
static
const
WCHAR
numFmt
[]
=
{
'%'
,
'd'
,
0
};
static
const
WCHAR
colonSep
[]
=
{
':'
,
' '
,
0
};
static
const
WCHAR
commaSep
[]
=
{
','
,
' '
,
0
};
static
const
WCHAR
colon
[]
=
{
':'
,
0
};
static
BOOL
stringsLoaded
=
FALSE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment