mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-29 16:54:51 +02:00
Enable PKCS11 Support (#331)
- Enable use of PKCS11 library files by adjusting central configuration file. - Modified dlsym() to return a void pointer instead of an int which is consistent with POSIX. The previous return type caused an issue with 32-bit builds with PKCS11 enabled.
This commit is contained in:
parent
bfd4ddf194
commit
44ba5483cd
@ -135,7 +135,7 @@
|
|||||||
#define DISABLE_WTMPX 1
|
#define DISABLE_WTMPX 1
|
||||||
|
|
||||||
/* Enable for PKCS#11 support */
|
/* Enable for PKCS#11 support */
|
||||||
/* #undef ENABLE_PKCS11 */
|
#define ENABLE_PKCS11 1
|
||||||
|
|
||||||
/* File names may not contain backslash characters */
|
/* File names may not contain backslash characters */
|
||||||
/* #undef FILESYSTEM_NO_BACKSLASH */
|
/* #undef FILESYSTEM_NO_BACKSLASH */
|
||||||
|
@ -5,7 +5,5 @@
|
|||||||
HMODULE dlopen(const char *filename, int flags);
|
HMODULE dlopen(const char *filename, int flags);
|
||||||
|
|
||||||
int dlclose(HMODULE handle);
|
int dlclose(HMODULE handle);
|
||||||
|
void * dlsym(HMODULE handle, const char *symbol);
|
||||||
FARPROC dlsym(HMODULE handle, const char *symbol);
|
|
||||||
|
|
||||||
char * dlerror();
|
char * dlerror();
|
||||||
|
@ -247,7 +247,7 @@ dlclose(HMODULE handle)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
FARPROC
|
void *
|
||||||
dlsym(HMODULE handle, const char *symbol)
|
dlsym(HMODULE handle, const char *symbol)
|
||||||
{
|
{
|
||||||
void *ptr = GetProcAddress(handle, symbol);
|
void *ptr = GetProcAddress(handle, symbol);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user