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
35f8d739
Commit
35f8d739
authored
Oct 11, 2010
by
Andrew Eikum
Committed by
Alexandre Julliard
Oct 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptnet/tests: Use UrlCanonicalize to create a URL.
parent
602d44a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
13 deletions
+6
-13
Makefile.in
dlls/cryptnet/tests/Makefile.in
+1
-1
cryptnet.c
dlls/cryptnet/tests/cryptnet.c
+5
-12
No files found.
dlls/cryptnet/tests/Makefile.in
View file @
35f8d739
TESTDLL
=
cryptnet.dll
IMPORTS
=
cryptnet crypt32
IMPORTS
=
cryptnet crypt32
shlwapi
C_SRCS
=
\
cryptnet.c
...
...
dlls/cryptnet/tests/cryptnet.c
View file @
35f8d739
...
...
@@ -24,6 +24,7 @@
#include <winbase.h>
#include <winerror.h>
#include <wincrypt.h>
#include <shlwapi.h>
#include "wine/test.h"
static
const
BYTE
bigCert
[]
=
{
...
...
@@ -316,13 +317,14 @@ static void make_tmp_file(LPSTR path)
static
void
test_retrieveObjectByUrl
(
void
)
{
BOOL
ret
;
char
tmpfile
[
MAX_PATH
*
2
],
*
ptr
,
url
[
MAX_PATH
+
8
];
char
tmpfile
[
MAX_PATH
*
2
],
url
[
MAX_PATH
+
8
];
CRYPT_BLOB_ARRAY
*
pBlobArray
;
PCCERT_CONTEXT
cert
;
PCCRL_CONTEXT
crl
;
HCERTSTORE
store
;
CRYPT_RETRIEVE_AUX_INFO
aux
=
{
0
};
FILETIME
ft
=
{
0
};
DWORD
urllen
;
SetLastError
(
0xdeadbeef
);
ret
=
CryptRetrieveObjectByUrlA
(
NULL
,
NULL
,
0
,
0
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
...
...
@@ -332,17 +334,8 @@ static void test_retrieveObjectByUrl(void)
GetLastError
(),
GetLastError
());
make_tmp_file
(
tmpfile
);
ptr
=
strchr
(
tmpfile
,
':'
);
if
(
ptr
)
ptr
+=
2
;
/* skip colon and first slash */
else
ptr
=
tmpfile
;
snprintf
(
url
,
sizeof
(
url
),
"file:///%s"
,
ptr
);
do
{
ptr
=
strchr
(
url
,
'\\'
);
if
(
ptr
)
*
ptr
=
'/'
;
}
while
(
ptr
);
urllen
=
sizeof
(
url
);
UrlCanonicalizeA
(
tmpfile
,
url
,
&
urllen
,
URL_WININET_COMPATIBILITY
);
pBlobArray
=
(
CRYPT_BLOB_ARRAY
*
)
0xdeadbeef
;
ret
=
CryptRetrieveObjectByUrlA
(
url
,
NULL
,
0
,
0
,
(
void
**
)
&
pBlobArray
,
...
...
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