20#include <winpr/config.h>
22#include <winpr/crypto.h>
151#include <winpr/crt.h>
152#include <winpr/wlog.h>
153#include <winpr/wincrypt.h>
159HCERTSTORE CertOpenStore(LPCSTR lpszStoreProvider, DWORD dwMsgAndCertEncodingType,
160 WINPR_ATTR_UNUSED HCRYPTPROV_LEGACY hCryptProv,
161 WINPR_ATTR_UNUSED DWORD dwFlags, WINPR_ATTR_UNUSED
const void* pvPara)
169 certstore->lpszStoreProvider = lpszStoreProvider;
170 certstore->dwMsgAndCertEncodingType = dwMsgAndCertEncodingType;
173 return (HCERTSTORE)certstore;
176HCERTSTORE CertOpenSystemStoreW(HCRYPTPROV_LEGACY hProv,
177 WINPR_ATTR_UNUSED LPCWSTR szSubsystemProtocol)
179 HCERTSTORE hCertStore = NULL;
181 hCertStore = CertOpenStore(CERT_STORE_PROV_FILE, X509_ASN_ENCODING, hProv, 0, NULL);
186HCERTSTORE CertOpenSystemStoreA(HCRYPTPROV_LEGACY hProv,
187 WINPR_ATTR_UNUSED LPCSTR szSubsystemProtocol)
189 return CertOpenSystemStoreW(hProv, NULL);
192BOOL CertCloseStore(HCERTSTORE hCertStore, WINPR_ATTR_UNUSED DWORD dwFlags)
203PCCERT_CONTEXT CertFindCertificateInStore(WINPR_ATTR_UNUSED HCERTSTORE hCertStore,
204 WINPR_ATTR_UNUSED DWORD dwCertEncodingType,
205 WINPR_ATTR_UNUSED DWORD dwFindFlags,
206 WINPR_ATTR_UNUSED DWORD dwFindType,
207 WINPR_ATTR_UNUSED
const void* pvFindPara,
210 WLog_ERR(
"TODO",
"TODO: Implement");
214PCCERT_CONTEXT CertEnumCertificatesInStore(WINPR_ATTR_UNUSED HCERTSTORE hCertStore,
217 WLog_ERR(
"TODO",
"TODO: Implement");
221DWORD CertGetNameStringW(WINPR_ATTR_UNUSED
PCCERT_CONTEXT pCertContext,
222 WINPR_ATTR_UNUSED DWORD dwType, WINPR_ATTR_UNUSED DWORD dwFlags,
223 WINPR_ATTR_UNUSED
void* pvTypePara, WINPR_ATTR_UNUSED LPWSTR pszNameString,
224 WINPR_ATTR_UNUSED DWORD cchNameString)
226 WLog_ERR(
"TODO",
"TODO: Implement");
230DWORD CertGetNameStringA(WINPR_ATTR_UNUSED
PCCERT_CONTEXT pCertContext,
231 WINPR_ATTR_UNUSED DWORD dwType, WINPR_ATTR_UNUSED DWORD dwFlags,
232 WINPR_ATTR_UNUSED
void* pvTypePara, WINPR_ATTR_UNUSED LPSTR pszNameString,
233 WINPR_ATTR_UNUSED DWORD cchNameString)
235 WLog_ERR(
"TODO",
"TODO: Implement");