diff options
author | Andy Polyakov <appro@openssl.org> | 2008-12-22 13:54:12 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2008-12-22 13:54:12 +0000 |
commit | e527201f6be3c295358bcc8b6bafec598f02dc97 (patch) | |
tree | e3b3ea15baf24f50465ad652b13f418dcc26464d /engines/e_aep.c | |
parent | 70531c147c2d38b03f109312a270ccc0af6cf8d6 (diff) |
This _WIN32-specific patch makes it possible to "wrap" OpenSSL in another
.DLL, in particular static build. The issue has been discussed in RT#1230
and later on openssl-dev, and mutually exclusive approaches were suggested.
This completes compromise solution suggested in RT#1230.
PR: 1230
Diffstat (limited to 'engines/e_aep.c')
-rw-r--r-- | engines/e_aep.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/e_aep.c b/engines/e_aep.c index a91a39f018..742b4f9b18 100644 --- a/engines/e_aep.c +++ b/engines/e_aep.c @@ -867,10 +867,12 @@ static AEP_RV aep_get_connection(AEP_CONNECTION_HNDL_PTR phConnection) CRYPTO_w_lock(CRYPTO_LOCK_ENGINE); -#ifndef NETWARE_CLIB - curr_pid = getpid(); -#else +#ifdef NETWARE_CLIB curr_pid = GetThreadID(); +#elif defined(_WIN32) + curr_pid = _getpid(); +#else + curr_pid = getpid(); #endif /*Check if this is the first time this is being called from the current |