wine-wine/dlls/crypt32/main.c

153 lines
4.3 KiB
C
Raw Normal View History

2002-04-03 19:55:13 +00:00
/*
* Copyright 2002 Mike McCormack for CodeWeavers
2002-04-03 19:55:13 +00:00
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "config.h"
#include <stdarg.h>
#include "windef.h"
2002-04-03 19:55:13 +00:00
#include "winbase.h"
2002-06-13 22:02:17 +00:00
#include "wincrypt.h"
#include "mssip.h"
2002-08-16 01:36:53 +00:00
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(crypt);
2002-06-13 22:02:17 +00:00
2002-04-03 19:55:13 +00:00
/* this function is called by Internet Explorer when it is about to verify a downloaded component */
2002-04-11 17:34:46 +00:00
BOOL WINAPI I_CryptCreateLruCache(DWORD x, DWORD y)
2002-04-03 19:55:13 +00:00
{
2002-08-16 01:36:53 +00:00
FIXME("stub!\n");
2002-04-03 19:55:13 +00:00
return FALSE;
}
/* these functions all have an unknown number of args */
2002-04-11 17:34:46 +00:00
BOOL WINAPI I_CryptFindLruEntryData(DWORD x)
2002-04-03 19:55:13 +00:00
{
2002-08-16 01:36:53 +00:00
FIXME("stub!\n");
2002-04-03 19:55:13 +00:00
return FALSE;
}
2002-04-11 17:34:46 +00:00
BOOL WINAPI I_CryptFlushLruCache(DWORD x)
2002-04-03 19:55:13 +00:00
{
2002-08-16 01:36:53 +00:00
FIXME("stub!\n");
2002-04-03 19:55:13 +00:00
return FALSE;
}
2002-04-11 17:34:46 +00:00
BOOL WINAPI I_CryptFreeLruCache(DWORD x)
2002-04-03 19:55:13 +00:00
{
2002-08-16 01:36:53 +00:00
FIXME("stub!\n");
2002-04-03 19:55:13 +00:00
return FALSE;
}
2002-06-13 22:02:17 +00:00
BOOL WINAPI CryptProtectData(DATA_BLOB* pDataIn, LPCWSTR szDataDescr, DATA_BLOB* pOptionalEntropy,
PVOID pvReserved, CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct,
DWORD dwFlags, DATA_BLOB* pDataOut)
{
FIXME("stub!\n");
return FALSE;
}
2002-10-25 03:48:49 +00:00
/*
* (0x1001350, %eax, 0, 0, 9);
*
*/
BOOL WINAPI CertOpenStore(LPSTR dw1, DWORD dw2, DWORD dw3, DWORD dw4, DWORD dw5)
{
FIXME("(%s, %ld, %ld, %ld, %ld), stub.\n", debugstr_a(dw1), dw2, dw3, dw4, dw5);
return TRUE;
}
2002-06-13 22:02:17 +00:00
BOOL WINAPI CryptSIPRemoveProvider(GUID *pgProv)
{
2002-08-16 01:36:53 +00:00
FIXME("stub!\n");
2002-06-13 22:02:17 +00:00
return FALSE;
}
BOOL WINAPI CryptSIPAddProvider(SIP_ADD_NEWPROVIDER *psNewProv)
{
2002-08-16 01:36:53 +00:00
FIXME("stub!\n");
2002-06-13 22:02:17 +00:00
return FALSE;
}
BOOL WINAPI CryptSIPRetrieveSubjectGuid
(LPCWSTR FileName, HANDLE hFileIn, GUID *pgSubject)
2002-06-13 22:02:17 +00:00
{
2002-08-16 01:36:53 +00:00
FIXME("stub!\n");
2002-06-13 22:02:17 +00:00
return FALSE;
}
BOOL WINAPI CryptSIPLoad
(const GUID *pgSubject, DWORD dwFlags, SIP_DISPATCH_INFO *pSipDispatch)
{
2002-08-16 01:36:53 +00:00
FIXME("stub!\n");
return FALSE;
}
BOOL WINAPI CryptGetOIDFunctionValue(DWORD dwEncodingType, LPCSTR pszFuncName,
LPCSTR pszOID, LPCWSTR pwszValueName,
DWORD *pdwValueType, BYTE *pbValueData,
DWORD *pcbValueData)
{
FIXME("(%lx,%s,%s,%s,%p,%p,%p) stub!\n", dwEncodingType, pszFuncName, pszOID,
debugstr_w(pwszValueName), pdwValueType, pbValueData, pcbValueData);
return FALSE;
}
BOOL WINAPI CryptRegisterDefaultOIDFunction(DWORD dwEncodingType,
LPCSTR pszFuncName, DWORD dwIndex,
LPCWSTR pwszDll)
{
FIXME("(%lx,%s,%lx,%s) stub!\n", dwEncodingType, pszFuncName, dwIndex,
debugstr_w(pwszDll));
return FALSE;
}
2002-08-16 01:36:53 +00:00
BOOL WINAPI CryptRegisterOIDFunction(DWORD dwEncodingType, LPCSTR pszFuncName,
LPCSTR pszOID, LPCWSTR pwszDll, LPCSTR pszOverrideFuncName)
{
FIXME("(%lx,%s,%s,%s,%s) stub!\n", dwEncodingType, pszFuncName, pszOID,
debugstr_w(pwszDll), pszOverrideFuncName);
2002-06-13 22:02:17 +00:00
return FALSE;
}
PCCERT_CONTEXT WINAPI CertEnumCertificatesInStore(HCERTSTORE hCertStore, PCCERT_CONTEXT pPrev)
{
FIXME("(%p,%p)\n", hCertStore, pPrev);
return NULL;
}
BOOL WINAPI CertSaveStore(HCERTSTORE hCertStore, DWORD dwMsgAndCertEncodingType,
DWORD dwSaveAs, DWORD dwSaveTo, void* pvSaveToPara, DWORD dwFlags)
{
FIXME("(%p,%ld,%ld,%ld,%p,%08lx) stub!\n", hCertStore,
dwMsgAndCertEncodingType, dwSaveAs, dwSaveTo, pvSaveToPara, dwFlags);
return TRUE;
}
PCCRL_CONTEXT WINAPI CertCreateCRLContext( DWORD dwCertEncodingType,
const BYTE* pbCrlEncoded, DWORD cbCrlEncoded)
{
FIXME("%08lx %p %08lx\n", dwCertEncodingType, pbCrlEncoded, cbCrlEncoded);
return NULL;
}
BOOL WINAPI CertCloseStore( HCERTSTORE hCertStore, DWORD dwFlags )
{
FIXME("%p %08lx\n", hCertStore, dwFlags );
return TRUE;
}