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
ba1b572d
Commit
ba1b572d
authored
Dec 11, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Add support for decoding serial number property in the certificate attributes.
parent
d5863f7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
oid.c
dlls/crypt32/oid.c
+2
-0
str.c
dlls/crypt32/str.c
+1
-1
No files found.
dlls/crypt32/oid.c
View file @
ba1b572d
...
...
@@ -1107,6 +1107,7 @@ static const WCHAR SpcFinancialCriteria[] = { 'S','p','c','F','i','n','a','n','c
static
const
WCHAR
SpcMinimalCriteria
[]
=
{
'S'
,
'p'
,
'c'
,
'M'
,
'i'
,
'n'
,
'i'
,
'm'
,
'a'
,
'l'
,
'C'
,
'r'
,
'i'
,
't'
,
'e'
,
'r'
,
'i'
,
'a'
,
0
};
static
const
WCHAR
Email
[]
=
{
'E'
,
'm'
,
'a'
,
'i'
,
'l'
,
0
};
static
const
WCHAR
GN
[]
=
{
'G'
,
'N'
,
0
};
static
const
WCHAR
SERIALNUMBER
[]
=
{
'S'
,
'E'
,
'R'
,
'I'
,
'A'
,
'L'
,
'N'
,
'U'
,
'M'
,
'B'
,
'E'
,
'R'
,
0
};
static
const
DWORD
noNullFlag
=
CRYPT_OID_NO_NULL_ALGORITHM_PARA_FLAG
;
static
const
DWORD
mosaicFlags
=
CRYPT_OID_INHIBIT_SIGNATURE_FORMAT_FLAG
|
...
...
@@ -1226,6 +1227,7 @@ static const struct OIDInfoConstructor {
{
5
,
szOID_TELEPHONE_NUMBER
,
0
,
Phone
,
&
printableStringBlob
},
{
5
,
szOID_X21_ADDRESS
,
0
,
X21Address
,
&
numericStringBlob
},
{
5
,
szOID_DN_QUALIFIER
,
0
,
dnQualifier
,
NULL
},
{
5
,
szOID_DEVICE_SERIAL_NUMBER
,
0
,
SERIALNUMBER
,
NULL
},
{
6
,
szOID_AUTHORITY_KEY_IDENTIFIER2
,
0
,
(
LPCWSTR
)
IDS_AUTHORITY_KEY_ID
,
NULL
},
{
6
,
szOID_AUTHORITY_KEY_IDENTIFIER
,
0
,
(
LPCWSTR
)
IDS_AUTHORITY_KEY_ID
,
NULL
},
...
...
dlls/crypt32/str.c
View file @
ba1b572d
...
...
@@ -457,7 +457,7 @@ DWORD WINAPI CertNameToStrA(DWORD dwCertEncodingType, PCERT_NAME_BLOB pName,
for
(
j
=
0
;
(
!
psz
||
ret
<
csz
)
&&
j
<
rdn
->
cRDNAttr
;
j
++
)
{
DWORD
chars
;
char
prefixBuf
[
1
0
];
/* big enough for GivenName
*/
char
prefixBuf
[
1
3
];
/* big enough for SERIALNUMBER
*/
LPCSTR
prefix
=
NULL
;
if
((
dwStrType
&
0x000000ff
)
==
CERT_OID_NAME_STR
)
...
...
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