Use the proper #include file delimiter in advpack.
[wine/wine-gecko.git] / dlls / crypt32 / cert.c
blob1b2f29bfe36decde8501f8cd13ae25074399f604
1 /*
2 * Copyright 2002 Mike McCormack for CodeWeavers
3 * Copyright (C) 2004 Juan Lang
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #include <stdarg.h>
20 #include "windef.h"
21 #include "winbase.h"
22 #include "winreg.h"
23 #include "wincrypt.h"
24 #include "wine/debug.h"
26 WINE_DEFAULT_DEBUG_CHANNEL(crypt);
28 HCERTSTORE WINAPI CertOpenStore(LPCSTR lpszStoreProvider, DWORD dwEncodingType,
29 HCRYPTPROV hCryptProv, DWORD dwFlags, const void *pvPara)
31 FIXME("(%s, %ld, %ld, %ld, %p), stub.\n", debugstr_a(lpszStoreProvider), dwEncodingType, hCryptProv, dwFlags, pvPara);
32 return (HCERTSTORE)1;
35 HCERTSTORE WINAPI CertOpenSystemStoreA(HCRYPTPROV hProv,
36 LPCSTR szSubSystemProtocol)
38 FIXME("(%ld, %s), stub\n", hProv, debugstr_a(szSubSystemProtocol));
39 return (HCERTSTORE)1;
42 HCERTSTORE WINAPI CertOpenSystemStoreW(HCRYPTPROV hProv,
43 LPCWSTR szSubSystemProtocol)
45 FIXME("(%ld, %s), stub\n", hProv, debugstr_w(szSubSystemProtocol));
46 return (HCERTSTORE)1;
49 PCCERT_CONTEXT WINAPI CertEnumCertificatesInStore(HCERTSTORE hCertStore, PCCERT_CONTEXT pPrev)
51 FIXME("(%p,%p)\n", hCertStore, pPrev);
52 return NULL;
55 BOOL WINAPI CertSaveStore(HCERTSTORE hCertStore, DWORD dwMsgAndCertEncodingType,
56 DWORD dwSaveAs, DWORD dwSaveTo, void* pvSaveToPara, DWORD dwFlags)
58 FIXME("(%p,%ld,%ld,%ld,%p,%08lx) stub!\n", hCertStore,
59 dwMsgAndCertEncodingType, dwSaveAs, dwSaveTo, pvSaveToPara, dwFlags);
60 return TRUE;
63 PCCRL_CONTEXT WINAPI CertCreateCRLContext( DWORD dwCertEncodingType,
64 const BYTE* pbCrlEncoded, DWORD cbCrlEncoded)
66 FIXME("%08lx %p %08lx\n", dwCertEncodingType, pbCrlEncoded, cbCrlEncoded);
67 return NULL;
70 BOOL WINAPI CertCloseStore( HCERTSTORE hCertStore, DWORD dwFlags )
72 FIXME("%p %08lx\n", hCertStore, dwFlags );
73 return TRUE;
76 BOOL WINAPI CertFreeCertificateContext( PCCERT_CONTEXT pCertContext )
78 FIXME("%p stub\n", pCertContext);
79 return TRUE;
82 PCCERT_CONTEXT WINAPI CertFindCertificateInStore(HCERTSTORE hCertStore,
83 DWORD dwCertEncodingType, DWORD dwFlags, DWORD dwType,
84 const void *pvPara, PCCERT_CONTEXT pPrevCertContext)
86 FIXME("stub: %p %ld %ld %ld %p %p\n", hCertStore, dwCertEncodingType,
87 dwFlags, dwType, pvPara, pPrevCertContext);
88 SetLastError(CRYPT_E_NOT_FOUND);
89 return NULL;