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
812d6477
Commit
812d6477
authored
Apr 23, 2011
by
Andrew Bogott
Committed by
Alexandre Julliard
Apr 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Demonstrate that CryptStringToBinary can take arbitrary key headers and trailers.
parent
a5cfae6d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
base64.c
dlls/crypt32/tests/base64.c
+5
-0
No files found.
dlls/crypt32/tests/base64.c
View file @
812d6477
...
...
@@ -28,7 +28,9 @@
#include "wine/test.h"
#define CERT_HEADER "-----BEGIN CERTIFICATE-----\r\n"
#define ALT_CERT_HEADER "-----BEGIN This is some arbitrary text that goes on and on-----\r\n"
#define CERT_TRAILER "-----END CERTIFICATE-----\r\n"
#define ALT_CERT_TRAILER "-----END More arbitrary text------\r\n"
#define CERT_REQUEST_HEADER "-----BEGIN NEW CERTIFICATE REQUEST-----\r\n"
#define CERT_REQUEST_TRAILER "-----END NEW CERTIFICATE REQUEST-----\r\n"
#define X509_HEADER "-----BEGIN X509 CRL-----\r\n"
...
...
@@ -360,6 +362,9 @@ static void testStringToBinaryA(void)
decodeAndCompareBase64_A
(
tests
[
i
].
base64
,
CERT_HEADER
,
CERT_TRAILER
,
CRYPT_STRING_BASE64HEADER
,
CRYPT_STRING_BASE64HEADER
,
tests
[
i
].
toEncode
,
tests
[
i
].
toEncodeLen
);
decodeAndCompareBase64_A
(
tests
[
i
].
base64
,
ALT_CERT_HEADER
,
ALT_CERT_TRAILER
,
CRYPT_STRING_BASE64HEADER
,
CRYPT_STRING_BASE64HEADER
,
tests
[
i
].
toEncode
,
tests
[
i
].
toEncodeLen
);
decodeAndCompareBase64_A
(
tests
[
i
].
base64
,
CERT_REQUEST_HEADER
,
CERT_REQUEST_TRAILER
,
CRYPT_STRING_BASE64REQUESTHEADER
,
CRYPT_STRING_BASE64REQUESTHEADER
,
tests
[
i
].
toEncode
,
...
...
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