2 * Copyright (C) 2006 Maarten Lankhorst
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "wine/debug.h"
27 WINE_DEFAULT_DEBUG_CHANNEL(cryptnet
);
29 BOOL WINAPI
DllMain(HINSTANCE hinstDLL
, DWORD fdwReason
, LPVOID lpvReserved
)
31 TRACE("(0x%p, %d, %p)\n", hinstDLL
, fdwReason
, lpvReserved
);
34 case DLL_WINE_PREATTACH
:
35 return FALSE
; /* prefer native version */
36 case DLL_PROCESS_ATTACH
:
37 DisableThreadLibraryCalls(hinstDLL
);
39 case DLL_PROCESS_DETACH
:
40 /* Do uninitialisation here */
47 static const WCHAR cryptNet
[] = { 'c','r','y','p','t','n','e','t','.',
49 static const WCHAR ldapProvOpenStore
[] = { 'L','d','a','p','P','r','o','v',
50 'O','p','e','S','t','o','r','e',0 };
52 /***********************************************************************
53 * DllRegisterServer (CRYPTNET.@)
55 HRESULT WINAPI
DllRegisterServer(void)
58 CryptRegisterDefaultOIDFunction(X509_ASN_ENCODING
,
59 CRYPT_OID_VERIFY_REVOCATION_FUNC
, 0, cryptNet
);
60 CryptRegisterOIDFunction(0, CRYPT_OID_OPEN_STORE_PROV_FUNC
, "Ldap",
61 cryptNet
, "LdapProvOpenStore");
62 CryptRegisterOIDFunction(0, CRYPT_OID_OPEN_STORE_PROV_FUNC
,
63 CERT_STORE_PROV_LDAP_W
, cryptNet
, "LdapProvOpenStore");
67 /***********************************************************************
68 * DllUnregisterServer (CRYPTNET.@)
70 HRESULT WINAPI
DllUnregisterServer(void)
73 CryptUnregisterDefaultOIDFunction(X509_ASN_ENCODING
,
74 CRYPT_OID_VERIFY_REVOCATION_FUNC
, cryptNet
);
75 CryptUnregisterOIDFunction(0, CRYPT_OID_OPEN_STORE_PROV_FUNC
, "Ldap");
76 CryptUnregisterOIDFunction(0, CRYPT_OID_OPEN_STORE_PROV_FUNC
,
77 CERT_STORE_PROV_LDAP_W
);
81 /***********************************************************************
82 * CryptGetObjectUrl (CRYPTNET.@)
84 BOOL WINAPI
CryptGetObjectUrl(LPCSTR pszUrlOid
, LPVOID pvPara
, DWORD dwFlags
,
85 PCRYPT_URL_ARRAY pUrlArray
, DWORD
*pcbUrlArray
, PCRYPT_URL_INFO pUrlInfo
,
86 DWORD
*pcbUrlInfo
, LPVOID pvReserved
)
88 FIXME("(%s, %p, %08x, %p, %p, %p, %p, %p): stub\n", debugstr_a(pszUrlOid
),
89 pvPara
, dwFlags
, pUrlArray
, pcbUrlArray
, pUrlInfo
, pcbUrlInfo
, pvReserved
);
93 /***********************************************************************
94 * CertDllVerifyRevocation (CRYPTNET.@)
96 BOOL WINAPI
CertDllVerifyRevocation(DWORD dwEncodingType
, DWORD dwRevType
,
97 DWORD cContext
, void *rgpvContext
[], DWORD dwFlags
,
98 PCERT_REVOCATION_PARA pRevPara
, PCERT_REVOCATION_STATUS pRevStatus
)
100 FIXME("(%08x, %d, %d, %p, %08x, %p, %p): stub\n", dwEncodingType
, dwRevType
,
101 cContext
, rgpvContext
, dwFlags
, pRevPara
, pRevStatus
);