24#include "wine/unicode.h"
132 DWORD dwCtrlType,
void const *pvCtrlPara)
137 TRACE(
"(%p, %08x, %d, %p)\n", hCertStore,
dwFlags, dwCtrlType,
177 WARN(
"unknown type %d\n", store->
type);
187 else if (store->
dirty)
195 FIXME(
"%d: stub\n", dwCtrlType);
229 info->memStore = memStore;
233 provInfo.
cbSize =
sizeof(provInfo);
288 TRACE(
"returning %p\n", store);
357 static const WCHAR spc[] = {
's',
'p',
'c',0 };
358 static const WCHAR p7c[] = {
'p',
'7',
'c',0 };
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
BOOL CRYPT_ReadSerializedStoreFromFile(HANDLE file, HCERTSTORE store) DECLSPEC_HIDDEN
WINECRYPT_CERTSTORE * CRYPT_ProvCreateStore(DWORD dwFlags, WINECRYPT_CERTSTORE *memStore, const CERT_STORE_PROV_INFO *pProvInfo) DECLSPEC_HIDDEN
BOOL WINAPI I_CertUpdateStore(HCERTSTORE store1, HCERTSTORE store2, DWORD unk0, DWORD unk1) DECLSPEC_HIDDEN
BOOL WINAPI CryptReleaseContext(HCRYPTPROV hProv, DWORD dwFlags)
LPVOID WINAPI CryptMemAlloc(ULONG cbSize)
VOID WINAPI CryptMemFree(LPVOID pv)
BOOL WINAPI CryptQueryObject(DWORD dwObjectType, const void *pvObject, DWORD dwExpectedContentTypeFlags, DWORD dwExpectedFormatTypeFlags, DWORD dwFlags, DWORD *pdwMsgAndCertEncodingType, DWORD *pdwContentType, DWORD *pdwFormatType, HCERTSTORE *phCertStore, HCRYPTMSG *phMsg, const void **ppvContext)
HCERTSTORE WINAPI CertOpenStore(LPCSTR lpszStoreProvider, DWORD dwMsgAndCertEncodingType, HCRYPTPROV_LEGACY hCryptProv, DWORD dwFlags, const void *pvPara)
BOOL WINAPI CertCloseStore(HCERTSTORE hCertStore, DWORD dwFlags)
#define ERROR_CALL_NOT_IMPLEMENTED
#define ReadFile(a, b, c, d, e)
#define INVALID_HANDLE_VALUE
#define GetCurrentProcess()
#define ERROR_INVALID_HANDLE
#define FILE_ATTRIBUTE_NORMAL
#define MultiByteToWideChar
static const WCHAR *const ext[]
DWORD WINAPI GetFileSize(HANDLE hFile, LPDWORD lpFileSizeHigh)
BOOL WINAPI DuplicateHandle(IN HANDLE hSourceProcessHandle, IN HANDLE hSourceHandle, IN HANDLE hTargetProcessHandle, OUT LPHANDLE lpTargetHandle, IN DWORD dwDesiredAccess, IN BOOL bInheritHandle, IN DWORD dwOptions)
int WINAPI lstrcmpiW(LPCWSTR str1, LPCWSTR str2)
static BOOL WINAPI CRYPT_FileControl(HCERTSTORE hCertStore, DWORD dwFlags, DWORD dwCtrlType, void const *pvCtrlPara)
WINECRYPT_CERTSTORE * CRYPT_FileNameOpenStoreA(HCRYPTPROV hCryptProv, DWORD dwFlags, const void *pvPara)
static void * fileProvFuncs[]
static BOOL WINAPI CRYPT_FileDeleteCert(HCERTSTORE hCertStore, PCCERT_CONTEXT pCertContext, DWORD dwFlags)
static BOOL WINAPI CRYPT_FileWriteCTL(HCERTSTORE hCertStore, PCCTL_CONTEXT ctl, DWORD dwFlags)
static BOOL WINAPI CRYPT_FileWriteCert(HCERTSTORE hCertStore, PCCERT_CONTEXT cert, DWORD dwFlags)
static BOOL WINAPI CRYPT_FileDeleteCTL(HCERTSTORE hCertStore, PCCTL_CONTEXT pCtlContext, DWORD dwFlags)
static BOOL WINAPI CRYPT_FileDeleteCRL(HCERTSTORE hCertStore, PCCRL_CONTEXT pCrlContext, DWORD dwFlags)
WINECRYPT_CERTSTORE * CRYPT_FileOpenStore(HCRYPTPROV hCryptProv, DWORD dwFlags, const void *pvPara)
struct _WINE_FILESTOREINFO WINE_FILESTOREINFO
static WINECRYPT_CERTSTORE * CRYPT_CreateFileStore(DWORD dwFlags, HCERTSTORE memStore, HANDLE file, DWORD type)
WINECRYPT_CERTSTORE * CRYPT_FileNameOpenStoreW(HCRYPTPROV hCryptProv, DWORD dwFlags, const void *pvPara)
static BOOL CRYPT_ReadBlobFromFile(HANDLE file, PCERT_BLOB blob)
static BOOL WINAPI CRYPT_FileWriteCRL(HCERTSTORE hCertStore, PCCRL_CONTEXT crl, DWORD dwFlags)
static void WINAPI CRYPT_FileCloseStore(HCERTSTORE hCertStore, DWORD dwFlags)
GLuint GLuint GLsizei GLenum type
GLuint GLint GLboolean GLint GLenum access
#define ERROR_FILE_NOT_FOUND
static const struct access_res create[16]
BOOL WINAPI CertSaveStore(HCERTSTORE hCertStore, DWORD dwMsgAndCertEncodingType, DWORD dwSaveAs, DWORD dwSaveTo, void *pvSaveToPara, DWORD dwFlags)
void ** rgpvStoreProvFunc
HCERTSTOREPROV hStoreProv
_In_ PCCRL_CONTEXT pCrlContext
#define CERT_STORE_SAVE_AS_STORE
#define CERT_QUERY_OBJECT_FILE
#define CERT_STORE_SAVE_AS_PKCS7
#define CERT_QUERY_CONTENT_FLAG_CERT
#define CERT_STORE_OPEN_EXISTING_FLAG
#define CERT_STORE_CREATE_NEW_FLAG
#define CERT_QUERY_OBJECT_BLOB
#define CERT_QUERY_FORMAT_FLAG_BINARY
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
#define CERT_STORE_CTRL_RESYNC
_In_ PCCTL_CONTEXT pCtlContext
#define X509_ASN_ENCODING
#define CERT_FILE_STORE_COMMIT_ENABLE_FLAG
#define CERT_STORE_PROV_MEMORY
_In_ PCCERT_CONTEXT pCertContext
#define CERT_QUERY_CONTENT_FLAG_PKCS7_SIGNED
#define CERT_QUERY_FORMAT_FLAG_ALL
#define CERT_QUERY_CONTENT_FLAG_SERIALIZED_STORE
#define CERT_STORE_CTRL_COMMIT
#define CERT_STORE_NO_CRYPT_RELEASE_FLAG
#define PKCS_7_ASN_ENCODING
#define CERT_STORE_SAVE_TO_FILE
#define CERT_STORE_DELETE_FLAG
#define CERT_STORE_READONLY_FLAG
#define ERROR_PATH_NOT_FOUND