Added missing WINPR_API

This commit is contained in:
Armin Novak 2022-04-25 14:28:26 +02:00 committed by akallabeth
parent 4734c61c8c
commit 08035be41b
3 changed files with 18 additions and 16 deletions

View File

@ -89,9 +89,9 @@ extern "C"
DWORD* PublicKeyLength); DWORD* PublicKeyLength);
#define TSSK_KEY_LENGTH 64 #define TSSK_KEY_LENGTH 64
extern const BYTE tssk_modulus[]; WINPR_API extern const BYTE tssk_modulus[];
extern const BYTE tssk_privateExponent[]; WINPR_API extern const BYTE tssk_privateExponent[];
extern const BYTE tssk_exponent[]; WINPR_API extern const BYTE tssk_exponent[];
FREERDP_API SSIZE_T crypto_rsa_public_encrypt(const BYTE* input, size_t length, FREERDP_API SSIZE_T crypto_rsa_public_encrypt(const BYTE* input, size_t length,
size_t key_length, const BYTE* modulus, size_t key_length, const BYTE* modulus,

View File

@ -482,7 +482,7 @@ typedef const CERT_CONTEXT* PCCERT_CONTEXT;
#define CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE \ #define CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE \
(CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE_ID << CERT_SYSTEM_STORE_LOCATION_SHIFT) (CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE_ID << CERT_SYSTEM_STORE_LOCATION_SHIFT)
HCERTSTORE CertOpenStore(LPCSTR lpszStoreProvider, DWORD dwMsgAndCertEncodingType, WINPR_API HCERTSTORE CertOpenStore(LPCSTR lpszStoreProvider, DWORD dwMsgAndCertEncodingType,
HCRYPTPROV_LEGACY hCryptProv, DWORD dwFlags, const void* pvPara); HCRYPTPROV_LEGACY hCryptProv, DWORD dwFlags, const void* pvPara);
WINPR_API HCERTSTORE CertOpenSystemStoreW(HCRYPTPROV_LEGACY hProv, LPCWSTR szSubsystemProtocol); WINPR_API HCERTSTORE CertOpenSystemStoreW(HCRYPTPROV_LEGACY hProv, LPCWSTR szSubsystemProtocol);
@ -607,15 +607,17 @@ extern "C"
#define CRYPT_STRING_NOCRLF 0x40000000 #define CRYPT_STRING_NOCRLF 0x40000000
#define CRYPT_STRING_NOCR 0x80000000 #define CRYPT_STRING_NOCR 0x80000000
BOOL CryptStringToBinaryW(LPCWSTR pszString, DWORD cchString, DWORD dwFlags, BYTE* pbBinary, WINPR_API BOOL CryptStringToBinaryW(LPCWSTR pszString, DWORD cchString, DWORD dwFlags,
DWORD* pcbBinary, DWORD* pdwSkip, DWORD* pdwFlags); BYTE* pbBinary, DWORD* pcbBinary, DWORD* pdwSkip,
BOOL CryptStringToBinaryA(LPCSTR pszString, DWORD cchString, DWORD dwFlags, BYTE* pbBinary, DWORD* pdwFlags);
DWORD* pcbBinary, DWORD* pdwSkip, DWORD* pdwFlags); WINPR_API BOOL CryptStringToBinaryA(LPCSTR pszString, DWORD cchString, DWORD dwFlags,
BYTE* pbBinary, DWORD* pcbBinary, DWORD* pdwSkip,
DWORD* pdwFlags);
BOOL CryptBinaryToStringW(CONST BYTE* pbBinary, DWORD cbBinary, DWORD dwFlags, LPWSTR pszString, WINPR_API BOOL CryptBinaryToStringW(CONST BYTE* pbBinary, DWORD cbBinary, DWORD dwFlags,
DWORD* pcchString); LPWSTR pszString, DWORD* pcchString);
BOOL CryptBinaryToStringA(CONST BYTE* pbBinary, DWORD cbBinary, DWORD dwFlags, LPSTR pszString, WINPR_API BOOL CryptBinaryToStringA(CONST BYTE* pbBinary, DWORD cbBinary, DWORD dwFlags,
DWORD* pcchString); LPSTR pszString, DWORD* pcchString);
#ifdef UNICODE #ifdef UNICODE
#define CryptStringToBinary CryptStringToBinaryW #define CryptStringToBinary CryptStringToBinaryW

View File

@ -619,9 +619,9 @@ extern "C"
{ {
#endif #endif
extern const SCARD_IO_REQUEST g_rgSCardT0Pci; WINPR_API extern const SCARD_IO_REQUEST g_rgSCardT0Pci;
extern const SCARD_IO_REQUEST g_rgSCardT1Pci; WINPR_API extern const SCARD_IO_REQUEST g_rgSCardT1Pci;
extern const SCARD_IO_REQUEST g_rgSCardRawPci; WINPR_API extern const SCARD_IO_REQUEST g_rgSCardRawPci;
#define SCARD_PCI_T0 (&g_rgSCardT0Pci) #define SCARD_PCI_T0 (&g_rgSCardT0Pci)
#define SCARD_PCI_T1 (&g_rgSCardT1Pci) #define SCARD_PCI_T1 (&g_rgSCardT1Pci)