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
681a408a
Commit
681a408a
authored
Oct 22, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Oct 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptnet: Implement CryptRetrieveObjectByUrlW for the file: protocol.
parent
1fbb0f6a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
13 deletions
+5
-13
Makefile.in
dlls/cryptnet/Makefile.in
+1
-0
cryptnet_main.c
dlls/cryptnet/cryptnet_main.c
+0
-0
cryptnet.c
dlls/cryptnet/tests/cryptnet.c
+4
-13
No files found.
dlls/cryptnet/Makefile.in
View file @
681a408a
...
...
@@ -5,6 +5,7 @@ VPATH = @srcdir@
MODULE
=
cryptnet.dll
IMPORTLIB
=
libcryptnet.
$(IMPLIBEXT)
IMPORTS
=
crypt32 kernel32
DELAYIMPORTS
=
wininet
C_SRCS
=
\
cryptnet_main.c
...
...
dlls/cryptnet/cryptnet_main.c
View file @
681a408a
This diff is collapsed.
Click to expand it.
dlls/cryptnet/tests/cryptnet.c
View file @
681a408a
...
...
@@ -286,9 +286,7 @@ static void test_retrieveObjectByUrl(void)
pBlobArray
=
(
CRYPT_BLOB_ARRAY
*
)
0xdeadbeef
;
ret
=
CryptRetrieveObjectByUrlA
(
url
,
NULL
,
0
,
0
,
(
void
**
)
&
pBlobArray
,
NULL
,
NULL
,
NULL
,
NULL
);
todo_wine
ok
(
ret
,
"CryptRetrieveObjectByUrlA failed: %d
\n
"
,
GetLastError
());
todo_wine
ok
(
pBlobArray
&&
pBlobArray
!=
(
CRYPT_BLOB_ARRAY
*
)
0xdeadbeef
,
"Expected a valid pointer
\n
"
);
if
(
pBlobArray
&&
pBlobArray
!=
(
CRYPT_BLOB_ARRAY
*
)
0xdeadbeef
)
...
...
@@ -302,7 +300,6 @@ static void test_retrieveObjectByUrl(void)
cert
=
(
PCCERT_CONTEXT
)
0xdeadbeef
;
ret
=
CryptRetrieveObjectByUrlA
(
url
,
CONTEXT_OID_CERTIFICATE
,
0
,
0
,
(
void
**
)
&
cert
,
NULL
,
NULL
,
NULL
,
NULL
);
todo_wine
ok
(
cert
&&
cert
!=
(
PCCERT_CONTEXT
)
0xdeadbeef
,
"Expected a cert
\n
"
);
if
(
cert
&&
cert
!=
(
PCCERT_CONTEXT
)
0xdeadbeef
)
CertFreeCertificateContext
(
cert
);
...
...
@@ -310,17 +307,14 @@ static void test_retrieveObjectByUrl(void)
SetLastError
(
0xdeadbeef
);
ret
=
CryptRetrieveObjectByUrlA
(
url
,
CONTEXT_OID_CRL
,
0
,
0
,
(
void
**
)
&
crl
,
NULL
,
NULL
,
NULL
,
NULL
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
CRYPT_E_NO_MATCH
,
"Expected CRYPT_E_NO_MATCH, got %08x
\n
"
,
GetLastError
());
todo_wine
ok
(
crl
==
NULL
,
"Expected CRL to be NULL
\n
"
);
if
(
crl
&&
crl
!=
(
PCCRL_CONTEXT
)
0xdeadbeef
)
CertFreeCRLContext
(
crl
);
store
=
(
HCERTSTORE
)
0xdeadbeef
;
ret
=
CryptRetrieveObjectByUrlA
(
url
,
CONTEXT_OID_CAPI2_ANY
,
0
,
0
,
(
void
**
)
&
store
,
NULL
,
NULL
,
NULL
,
NULL
);
todo_wine
ok
(
ret
,
"CryptRetrieveObjectByUrlA failed: %d
\n
"
,
GetLastError
());
if
(
store
&&
store
!=
(
HCERTSTORE
)
0xdeadbeef
)
{
...
...
@@ -338,25 +332,21 @@ static void test_retrieveObjectByUrl(void)
/* Are file URLs cached? */
ret
=
CryptRetrieveObjectByUrlA
(
url
,
CONTEXT_OID_CERTIFICATE
,
CRYPT_CACHE_ONLY_RETRIEVAL
,
0
,
(
void
**
)
&
cert
,
NULL
,
NULL
,
NULL
,
NULL
);
todo_wine
ok
(
ret
,
"CryptRetrieveObjectByUrlA failed: %08x
\n
"
,
GetLastError
());
if
(
cert
&&
cert
!=
(
PCCERT_CONTEXT
)
0xdeadbeef
)
CertFreeCertificateContext
(
cert
);
ret
=
CryptRetrieveObjectByUrlA
(
url
,
CONTEXT_OID_CERTIFICATE
,
0
,
0
,
(
void
**
)
&
cert
,
NULL
,
NULL
,
NULL
,
&
aux
);
todo_wine
ok
(
ret
,
"CryptRetrieveObjectByUrlA failed: %08x
\n
"
,
GetLastError
());
if
(
cert
&&
cert
!=
(
PCCERT_CONTEXT
)
0xdeadbeef
)
CertFreeCertificateContext
(
cert
);
aux
.
cbSize
=
sizeof
(
aux
);
ret
=
CryptRetrieveObjectByUrlA
(
url
,
CONTEXT_OID_CERTIFICATE
,
0
,
0
,
(
void
**
)
&
cert
,
NULL
,
NULL
,
NULL
,
&
aux
);
todo_wine
ok
(
ret
,
"CryptRetrieveObjectByUrlA failed: %08x
\n
"
,
GetLastError
());
aux
.
pLastSyncTime
=
&
ft
;
ret
=
CryptRetrieveObjectByUrlA
(
url
,
CONTEXT_OID_CERTIFICATE
,
0
,
0
,
(
void
**
)
&
cert
,
NULL
,
NULL
,
NULL
,
&
aux
);
todo_wine
ok
(
ft
.
dwLowDateTime
||
ft
.
dwHighDateTime
,
"Expected last sync time to be set
\n
"
);
DeleteFileA
(
tmpfile
);
...
...
@@ -364,9 +354,10 @@ static void test_retrieveObjectByUrl(void)
SetLastError
(
0xdeadbeef
);
ret
=
CryptRetrieveObjectByUrlA
(
url
,
CONTEXT_OID_CERTIFICATE
,
CRYPT_CACHE_ONLY_RETRIEVAL
,
0
,
(
void
**
)
&
cert
,
NULL
,
NULL
,
NULL
,
NULL
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
GetLastError
());
ok
(
!
ret
&&
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
||
GetLastError
()
==
ERROR_PATH_NOT_FOUND
),
"Expected ERROR_FILE_NOT_FOUND or ERROR_PATH_NOT_FOUND, got %d
\n
"
,
GetLastError
());
}
START_TEST
(
cryptnet
)
...
...
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