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
4009ed30
Commit
4009ed30
authored
Oct 18, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Oct 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptnet: Implement DllRegisterServer/DllUnregisterServer.
parent
c18fa4df
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
Makefile.in
dlls/cryptnet/Makefile.in
+1
-1
cryptnet_main.c
dlls/cryptnet/cryptnet_main.c
+19
-4
No files found.
dlls/cryptnet/Makefile.in
View file @
4009ed30
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
cryptnet.dll
IMPORTS
=
kernel32
IMPORTS
=
crypt32
kernel32
C_SRCS
=
\
cryptnet_main.c
...
...
dlls/cryptnet/cryptnet_main.c
View file @
4009ed30
...
...
@@ -22,6 +22,7 @@
#include "wine/debug.h"
#include "winbase.h"
#include "winnt.h"
#include "wincrypt.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
cryptnet
);
...
...
@@ -43,13 +44,23 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
return
TRUE
;
}
static
const
WCHAR
cryptNet
[]
=
{
'c'
,
'r'
,
'y'
,
'p'
,
't'
,
'n'
,
'e'
,
't'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
static
const
WCHAR
ldapProvOpenStore
[]
=
{
'L'
,
'd'
,
'a'
,
'p'
,
'P'
,
'r'
,
'o'
,
'v'
,
'O'
,
'p'
,
'e'
,
'S'
,
't'
,
'o'
,
'r'
,
'e'
,
0
};
/***********************************************************************
* DllRegisterServer (CRYPTNET.@)
*/
HRESULT
WINAPI
DllRegisterServer
(
void
)
{
FIXME
(
"stub
\n
"
);
TRACE
(
"
\n
"
);
CryptRegisterDefaultOIDFunction
(
X509_ASN_ENCODING
,
CRYPT_OID_VERIFY_REVOCATION_FUNC
,
0
,
cryptNet
);
CryptRegisterOIDFunction
(
0
,
CRYPT_OID_OPEN_STORE_PROV_FUNC
,
"Ldap"
,
cryptNet
,
"LdapProvOpenStore"
);
CryptRegisterOIDFunction
(
0
,
CRYPT_OID_OPEN_STORE_PROV_FUNC
,
CERT_STORE_PROV_LDAP_W
,
cryptNet
,
"LdapProvOpenStore"
);
return
S_OK
;
}
...
...
@@ -58,7 +69,11 @@ HRESULT WINAPI DllRegisterServer(void)
*/
HRESULT
WINAPI
DllUnregisterServer
(
void
)
{
FIXME
(
"stub
\n
"
);
TRACE
(
"
\n
"
);
CryptUnregisterDefaultOIDFunction
(
X509_ASN_ENCODING
,
CRYPT_OID_VERIFY_REVOCATION_FUNC
,
cryptNet
);
CryptUnregisterOIDFunction
(
0
,
CRYPT_OID_OPEN_STORE_PROV_FUNC
,
"Ldap"
);
CryptUnregisterOIDFunction
(
0
,
CRYPT_OID_OPEN_STORE_PROV_FUNC
,
CERT_STORE_PROV_LDAP_W
);
return
S_OK
;
}
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