Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ae133b80
Commit
ae133b80
authored
Dec 23, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Dec 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Fix encoding OIDs with only two components.
parent
84d9b2c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
asn.c
dlls/wintrust/asn.c
+6
-1
No files found.
dlls/wintrust/asn.c
View file @
ae133b80
...
...
@@ -532,7 +532,7 @@ static BOOL WINAPI CRYPT_AsnEncodeOid(DWORD dwCertEncodingType,
const
char
*
ptr
;
int
val1
,
val2
;
if
(
sscanf
(
pszObjId
,
"%d.%d
.
%n"
,
&
val1
,
&
val2
,
&
firstPos
)
!=
2
)
if
(
sscanf
(
pszObjId
,
"%d.%d%n"
,
&
val1
,
&
val2
,
&
firstPos
)
!=
2
)
{
SetLastError
(
CRYPT_E_ASN1_ERROR
);
return
FALSE
;
...
...
@@ -540,6 +540,11 @@ static BOOL WINAPI CRYPT_AsnEncodeOid(DWORD dwCertEncodingType,
bytesNeeded
++
;
firstByte
=
val1
*
40
+
val2
;
ptr
=
pszObjId
+
firstPos
;
if
(
*
ptr
==
'.'
)
{
ptr
++
;
firstPos
++
;
}
while
(
ret
&&
*
ptr
)
{
int
pos
;
...
...
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