FreeRDP
|
Data Structures | |
struct | NCryptKeyName |
a key name descriptor More... | |
struct | NCryptProviderName |
a provider name descriptor More... | |
Macros | |
#define | __SECSTATUS_DEFINED__ |
#define | MS_KEY_STORAGE_PROVIDER |
#define | MS_SMART_CARD_KEY_STORAGE_PROVIDER |
#define | MS_SCARD_PROV_A "Microsoft Base Smart Card Crypto Provider" |
#define | MS_SCARD_PROV |
#define | MS_PLATFORM_KEY_STORAGE_PROVIDER |
#define | NCRYPT_CERTIFICATE_PROPERTY |
#define | NCRYPT_NAME_PROPERTY (const WCHAR*)"N\x00a\x00m\x00e\x00\x00" |
#define | NCRYPT_UNIQUE_NAME_PROPERTY |
#define | NCRYPT_READER_PROPERTY |
#define | NCRYPT_WINPR_SLOTID (const WCHAR*)"S\x00l\x00o\x00t\x00\x00" |
#define | NCRYPT_MACHINE_KEY_FLAG 0x20 |
#define | NCRYPT_SILENT_FLAG 0x40 |
Typedefs | |
typedef LONG | SECURITY_STATUS |
typedef ULONG_PTR | NCRYPT_HANDLE |
typedef ULONG_PTR | NCRYPT_PROV_HANDLE |
typedef ULONG_PTR | NCRYPT_KEY_HANDLE |
#define __SECSTATUS_DEFINED__ |
#define MS_KEY_STORAGE_PROVIDER |
#define MS_PLATFORM_KEY_STORAGE_PROVIDER |
#define MS_SCARD_PROV |
#define MS_SCARD_PROV_A "Microsoft Base Smart Card Crypto Provider" |
#define MS_SMART_CARD_KEY_STORAGE_PROVIDER |
#define NCRYPT_CERTIFICATE_PROPERTY |
#define NCRYPT_MACHINE_KEY_FLAG 0x20 |
#define NCRYPT_NAME_PROPERTY (const WCHAR*)"N\x00a\x00m\x00e\x00\x00" |
#define NCRYPT_READER_PROPERTY |
#define NCRYPT_SILENT_FLAG 0x40 |
#define NCRYPT_UNIQUE_NAME_PROPERTY |
#define NCRYPT_WINPR_SLOTID (const WCHAR*)"S\x00l\x00o\x00t\x00\x00" |
typedef ULONG_PTR NCRYPT_HANDLE |
typedef ULONG_PTR NCRYPT_KEY_HANDLE |
typedef ULONG_PTR NCRYPT_PROV_HANDLE |
typedef LONG SECURITY_STATUS |
WinPR: Windows Portable Runtime NCrypt library
Copyright 2021 David Fort conta ct@h arden ing- consu ltin g.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
WINPR_API SECURITY_STATUS NCryptEnumKeys | ( | NCRYPT_PROV_HANDLE | hProvider, |
LPCWSTR | pszScope, | ||
NCryptKeyName ** | ppKeyName, | ||
PVOID * | ppEnumState, | ||
DWORD | dwFlags | ||
) |
WINPR_API SECURITY_STATUS NCryptEnumStorageProviders | ( | DWORD * | wProviderCount, |
NCryptProviderName ** | ppProviderList, | ||
DWORD | dwFlags | ||
) |
WINPR_API SECURITY_STATUS NCryptFreeBuffer | ( | PVOID | pvInput | ) |
WINPR_API SECURITY_STATUS NCryptFreeObject | ( | NCRYPT_HANDLE | hObject | ) |
WINPR_API SECURITY_STATUS NCryptGetProperty | ( | NCRYPT_HANDLE | hObject, |
LPCWSTR | pszProperty, | ||
PBYTE | pbOutput, | ||
DWORD | cbOutput, | ||
DWORD * | pcbResult, | ||
DWORD | dwFlags | ||
) |
WINPR_API SECURITY_STATUS NCryptOpenKey | ( | NCRYPT_PROV_HANDLE | hProvider, |
NCRYPT_KEY_HANDLE * | phKey, | ||
LPCWSTR | pszKeyName, | ||
DWORD | dwLegacyKeySpec, | ||
DWORD | dwFlags | ||
) |
WINPR_API SECURITY_STATUS NCryptOpenStorageProvider | ( | NCRYPT_PROV_HANDLE * | phProvider, |
LPCWSTR | pszProviderName, | ||
DWORD | dwFlags | ||
) |
WINPR_API const char* winpr_NCryptGetModulePath | ( | NCRYPT_PROV_HANDLE | phProvider | ) |
Gives a module path of provider handle
phProvider | [in] provider handle |
WINPR_API SECURITY_STATUS winpr_NCryptOpenStorageProviderEx | ( | NCRYPT_PROV_HANDLE * | phProvider, |
LPCWSTR | pszProviderName, | ||
DWORD | dwFlags, | ||
LPCSTR * | modulePaths | ||
) |
custom NCryptOpenStorageProvider that allows to provide a list of modules to load
phProvider | [out] resulting provider handle |
dwFlags | [in] the flags to use |
modulePaths | [in] an array of library path to try to load ended with a NULL string |
WINPR_API const char* winpr_NCryptSecurityStatusError | ( | SECURITY_STATUS | status | ) |
Gives a string representation of a SECURITY_STATUS
status | [in] SECURITY_STATUS that we want as string |