FreeRDP
|
#include <winpr/assert.h>
#include <winpr/library.h>
#include <winpr/ncrypt.h>
#include <winpr/print.h>
#include "../log.h"
#include "ncrypt.h"
Macros | |
#define | TAG WINPR_TAG("ncrypt") |
#define | NTE_CASE(S) |
Variables | |
static const char | NCRYPT_MAGIC [6] = { 'N', 'C', 'R', 'Y', 'P', 'T' } |
#define NTE_CASE | ( | S | ) |
#define TAG WINPR_TAG("ncrypt") |
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.
SECURITY_STATUS checkNCryptHandle | ( | NCRYPT_HANDLE | handle, |
NCryptHandleType | matchType | ||
) |
void* ncrypt_new_handle | ( | NCryptHandleType | kind, |
size_t | len, | ||
NCryptGetPropertyFn | getProp, | ||
NCryptReleaseFn | dtor | ||
) |
SECURITY_STATUS NCryptEnumKeys | ( | NCRYPT_PROV_HANDLE | hProvider, |
LPCWSTR | pszScope, | ||
NCryptKeyName ** | ppKeyName, | ||
PVOID * | ppEnumState, | ||
DWORD | dwFlags | ||
) |
SECURITY_STATUS NCryptEnumStorageProviders | ( | DWORD * | wProviderCount, |
NCryptProviderName ** | ppProviderList, | ||
DWORD | dwFlags | ||
) |
SECURITY_STATUS NCryptFreeBuffer | ( | PVOID | pvInput | ) |
SECURITY_STATUS NCryptFreeObject | ( | NCRYPT_HANDLE | hObject | ) |
SECURITY_STATUS NCryptGetProperty | ( | NCRYPT_HANDLE | hObject, |
LPCWSTR | pszProperty, | ||
PBYTE | pbOutput, | ||
DWORD | cbOutput, | ||
DWORD * | pcbResult, | ||
DWORD | dwFlags | ||
) |
SECURITY_STATUS NCryptOpenKey | ( | NCRYPT_PROV_HANDLE | hProvider, |
NCRYPT_KEY_HANDLE * | phKey, | ||
LPCWSTR | pszKeyName, | ||
DWORD | dwLegacyKeySpec, | ||
DWORD | dwFlags | ||
) |
SECURITY_STATUS NCryptOpenStorageProvider | ( | NCRYPT_PROV_HANDLE * | phProvider, |
LPCWSTR | pszProviderName, | ||
DWORD | dwFlags | ||
) |
|
static |
SECURITY_STATUS winpr_NCryptDefault_dtor | ( | NCRYPT_HANDLE | handle | ) |
const char* winpr_NCryptGetModulePath | ( | NCRYPT_PROV_HANDLE | phProvider | ) |
Gives a module path of provider handle
phProvider | [in] provider handle |
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 |
const char* winpr_NCryptSecurityStatusError | ( | SECURITY_STATUS | status | ) |
Gives a string representation of a SECURITY_STATUS
status | [in] SECURITY_STATUS that we want as string |
|
static |