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
1fbb0f6a
Commit
1fbb0f6a
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 CryptRetrieveObjectByUrlA on top of CryptRetrieveObjectByUrlW.
parent
a7cfe075
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
3 deletions
+28
-3
cryptnet_main.c
dlls/cryptnet/cryptnet_main.c
+28
-2
cryptnet.c
dlls/cryptnet/tests/cryptnet.c
+0
-1
No files found.
dlls/cryptnet/cryptnet_main.c
View file @
1fbb0f6a
...
...
@@ -24,6 +24,7 @@
#include "wine/debug.h"
#include "winbase.h"
#include "winnt.h"
#include "winnls.h"
#define NONAMELESSUNION
#include "wincrypt.h"
...
...
@@ -298,10 +299,35 @@ BOOL WINAPI CryptRetrieveObjectByUrlA(LPCSTR pszURL, LPCSTR pszObjectOid,
HCRYPTASYNC
hAsyncRetrieve
,
PCRYPT_CREDENTIALS
pCredentials
,
LPVOID
pvVerify
,
PCRYPT_RETRIEVE_AUX_INFO
pAuxInfo
)
{
FIXME
(
"(%s, %s, %08x, %d, %p, %p, %p, %p, %p)
\n
"
,
debugstr_a
(
pszURL
),
BOOL
ret
=
FALSE
;
int
len
;
TRACE
(
"(%s, %s, %08x, %d, %p, %p, %p, %p, %p)
\n
"
,
debugstr_a
(
pszURL
),
debugstr_a
(
pszObjectOid
),
dwRetrievalFlags
,
dwTimeout
,
ppvObject
,
hAsyncRetrieve
,
pCredentials
,
pvVerify
,
pAuxInfo
);
return
FALSE
;
if
(
!
pszURL
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
pszURL
,
-
1
,
NULL
,
0
);
if
(
len
)
{
LPWSTR
url
=
CryptMemAlloc
(
len
*
sizeof
(
WCHAR
));
if
(
url
)
{
MultiByteToWideChar
(
CP_ACP
,
0
,
pszURL
,
-
1
,
url
,
len
);
ret
=
CryptRetrieveObjectByUrlW
(
url
,
pszObjectOid
,
dwRetrievalFlags
,
dwTimeout
,
ppvObject
,
hAsyncRetrieve
,
pCredentials
,
pvVerify
,
pAuxInfo
);
CryptMemFree
(
url
);
}
else
SetLastError
(
ERROR_OUTOFMEMORY
);
}
return
ret
;
}
/***********************************************************************
...
...
dlls/cryptnet/tests/cryptnet.c
View file @
1fbb0f6a
...
...
@@ -267,7 +267,6 @@ static void test_retrieveObjectByUrl(void)
SetLastError
(
0xdeadbeef
);
ret
=
CryptRetrieveObjectByUrlA
(
NULL
,
NULL
,
0
,
0
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %08x
\n
"
,
GetLastError
());
...
...
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