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
b16a78ba
Commit
b16a78ba
authored
Nov 18, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Nov 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Remove a redundant test.
parent
4fa4f67c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
37 deletions
+0
-37
encode.c
dlls/crypt32/tests/encode.c
+0
-37
No files found.
dlls/crypt32/tests/encode.c
View file @
b16a78ba
...
...
@@ -3851,23 +3851,14 @@ static const BYTE v2CRLWithExt[] = { 0x30,0x5c,0x02,0x01,0x01,0x30,0x02,0x06,
0x02
,
0x01
,
0x01
,
0x18
,
0x0f
,
0x31
,
0x36
,
0x30
,
0x31
,
0x30
,
0x31
,
0x30
,
0x31
,
0x30
,
0x30
,
0x30
,
0x30
,
0x30
,
0x30
,
0x5a
,
0xa0
,
0x13
,
0x30
,
0x11
,
0x30
,
0x0f
,
0x06
,
0x03
,
0x55
,
0x1d
,
0x13
,
0x04
,
0x08
,
0x30
,
0x06
,
0x01
,
0x01
,
0xff
,
0x02
,
0x01
,
0x01
};
static
const
BYTE
v2CRLWithIssuingDistPoint
[]
=
{
0x30
,
0x5c
,
0x02
,
0x01
,
0x01
,
0x30
,
0x02
,
0x06
,
0x00
,
0x30
,
0x15
,
0x31
,
0x13
,
0x30
,
0x11
,
0x06
,
0x03
,
0x55
,
0x04
,
0x03
,
0x13
,
0x0a
,
0x4a
,
0x75
,
0x61
,
0x6e
,
0x20
,
0x4c
,
0x61
,
0x6e
,
0x67
,
0x00
,
0x18
,
0x0f
,
0x31
,
0x36
,
0x30
,
0x31
,
0x30
,
0x31
,
0x30
,
0x31
,
0x30
,
0x30
,
0x30
,
0x30
,
0x30
,
0x30
,
0x5a
,
0x30
,
0x16
,
0x30
,
0x14
,
0x02
,
0x01
,
0x01
,
0x18
,
0x0f
,
0x31
,
0x36
,
0x30
,
0x31
,
0x30
,
0x31
,
0x30
,
0x31
,
0x30
,
0x30
,
0x30
,
0x30
,
0x30
,
0x30
,
0x5a
,
0xa0
,
0x13
,
0x30
,
0x11
,
0x30
,
0x0f
,
0x06
,
0x03
,
0x55
,
0x1d
,
0x13
,
0x04
,
0x08
,
0x30
,
0x06
,
0x01
,
0x01
,
0xff
,
0x02
,
0x01
,
0x01
};
static
void
test_encodeCRLToBeSigned
(
DWORD
dwEncoding
)
{
BOOL
ret
;
BYTE
*
buf
=
NULL
;
static
CHAR
oid_issuing_dist_point
[]
=
szOID_ISSUING_DIST_POINT
;
DWORD
size
=
0
;
CRL_INFO
info
=
{
0
};
CRL_ENTRY
entry
=
{
{
0
},
{
0
},
0
,
0
};
CERT_EXTENSION
ext
;
/* Test with a V1 CRL */
ret
=
pCryptEncodeObjectEx
(
dwEncoding
,
X509_CERT_CRL_TO_BE_SIGNED
,
&
info
,
...
...
@@ -3978,21 +3969,6 @@ static void test_encodeCRLToBeSigned(DWORD dwEncoding)
ok
(
!
memcmp
(
buf
,
v2CRLWithExt
,
size
),
"Got unexpected value
\n
"
);
LocalFree
(
buf
);
}
/* a v2 CRL with an issuing dist point extension */
ext
.
pszObjId
=
oid_issuing_dist_point
;
ext
.
fCritical
=
TRUE
;
ext
.
Value
.
cbData
=
sizeof
(
urlIDP
);
ext
.
Value
.
pbData
=
(
LPBYTE
)
urlIDP
;
entry
.
rgExtension
=
&
ext
;
ret
=
pCryptEncodeObjectEx
(
dwEncoding
,
X509_CERT_CRL_TO_BE_SIGNED
,
&
info
,
CRYPT_ENCODE_ALLOC_FLAG
,
NULL
,
&
buf
,
&
size
);
ok
(
ret
,
"CryptEncodeObjectEx failed: %08x
\n
"
,
GetLastError
());
if
(
buf
)
{
ok
(
size
==
sizeof
(
v2CRLWithIssuingDistPoint
),
"Wrong size %d
\n
"
,
size
);
ok
(
!
memcmp
(
buf
,
v2CRLWithIssuingDistPoint
,
size
),
"Unexpected value
\n
"
);
LocalFree
(
buf
);
}
}
static
const
BYTE
verisignCRL
[]
=
{
0x30
,
0x82
,
0x01
,
0xb1
,
0x30
,
0x82
,
0x01
,
...
...
@@ -4686,19 +4662,6 @@ static void test_decodeCRLToBeSigned(DWORD dwEncoding)
info
->
cExtension
);
LocalFree
(
buf
);
}
/* And again, with an issuing dist point */
ret
=
pCryptDecodeObjectEx
(
dwEncoding
,
X509_CERT_CRL_TO_BE_SIGNED
,
v2CRLWithIssuingDistPoint
,
sizeof
(
v2CRLWithIssuingDistPoint
),
CRYPT_DECODE_ALLOC_FLAG
,
NULL
,
&
buf
,
&
size
);
ok
(
ret
,
"CryptDecodeObjectEx failed: %08x
\n
"
,
GetLastError
());
if
(
buf
)
{
CRL_INFO
*
info
=
(
CRL_INFO
*
)
buf
;
ok
(
info
->
cExtension
==
1
,
"Expected 1 extensions, got %d
\n
"
,
info
->
cExtension
);
LocalFree
(
buf
);
}
}
static
const
LPCSTR
keyUsages
[]
=
{
szOID_PKIX_KP_CODE_SIGNING
,
...
...
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