diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-05-27 21:13:43 +0000 |
---|---|---|
committer | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-05-27 21:13:43 +0000 |
commit | c670e8301145c1fe475b93df06edc50f69a760f8 (patch) | |
tree | ce9f71707c4237a02d1b841571cfd90bf2b44091 /lib | |
parent | dca9dcdecd448b75ccae83b99f6a18b607ff694f (diff) | |
parent | e0fa7550c0458a95ea5ca011e1d8c405c18b0f1d (diff) | |
download | gnutls-c670e8301145c1fe475b93df06edc50f69a760f8.tar.gz |
Merge branch 'static-ncrypt' into 'master'
Allow statically linking ncrypt (win32)
See merge request gnutls/gnutls!1254
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gnutls.pc.in | 2 | ||||
-rw-r--r-- | lib/system/keys-win.c | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/gnutls.pc.in b/lib/gnutls.pc.in index 46a1eb5d85..15d3ab057c 100644 --- a/lib/gnutls.pc.in +++ b/lib/gnutls.pc.in @@ -19,6 +19,6 @@ Description: Transport Security Layer implementation for the GNU system URL: https://www.gnutls.org/ Version: @VERSION@ Libs: -L${libdir} -lgnutls -Libs.private: @LIBINTL@ @LIBSOCKET@ @INET_PTON_LIB@ @LIBPTHREAD@ @LIB_SELECT@ @TSS_LIBS@ @GMP_LIBS@ @LIBUNISTRING@ @LIBATOMIC_LIBS@ @LIB_CRYPT32@ +Libs.private: @LIBINTL@ @LIBSOCKET@ @INET_PTON_LIB@ @LIBPTHREAD@ @LIB_SELECT@ @TSS_LIBS@ @GMP_LIBS@ @LIBUNISTRING@ @LIBATOMIC_LIBS@ @LIB_CRYPT32@ @LIBNCRYPT@ @GNUTLS_REQUIRES_PRIVATE@ Cflags: -I${includedir} diff --git a/lib/system/keys-win.c b/lib/system/keys-win.c index 678a668e49..767e377040 100644 --- a/lib/system/keys-win.c +++ b/lib/system/keys-win.c @@ -26,6 +26,7 @@ #define _WIN32_WINNT 0x600 #endif +#include <config.h> #include "gnutls_int.h" #include "errors.h" #include <gnutls/gnutls.h> @@ -45,8 +46,6 @@ #include <winbase.h> #include <winapifamily.h> -#define DYN_NCRYPT - #ifdef __MINGW32__ # include <_mingw.h> # ifdef __MINGW64_VERSION_MAJOR @@ -1487,13 +1486,16 @@ int _gnutls_system_key_init(void) ret = GNUTLS_E_CRYPTO_INIT_FAILED; goto fail; } -#endif ncrypt_init = 1; return 0; fail: FreeLibrary(ncrypt_lib); return ret; +#else + ncrypt_init = 1; + return 0; +#endif } void _gnutls_system_key_deinit(void) |