[gnutls-devel] GnuTLS | Windows builds: 'make install' installs dummy crypt32.dll and ncrypt.dll (#1232)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Tue May 11 10:59:22 CEST 2021

Tim Kosse commented:

There is a follow-up issue: In lib/system/keys-win.c CryptAcquireContextW is used. According to https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-cryptacquirecontextw, using this fuction requires linking against advapi32, however it is missing from the GnuTLS linker flags.

This results in an error loading libgnutls-30.dll: "The procedure entry point CryptAcquireContextW could not be loacated in the dynamic link library libgnutls-30.dll"

This issue however gets masked by the presence of the dummy crypt32.dll which exports this function, which the system's crypt32.dll does not export.

To solve this, -ladvapi32 needs to be added to GNUTLS_LIBS_PRIVATE in configure.ac

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1232#note_572240238
You're receiving this email because of your account on gitlab.com.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20210511/af5b4531/attachment.html>

More information about the Gnutls-devel mailing list