Next: Kerberos on Windows, Up: Downloading and Installing [Contents][Index]
There are two ways to build GNU SASL on Windows: via MinGW or via Microsoft Visual Studio. Note that a binary release for Windows is available from http://josefsson.org/gnutls4win/.
With MinGW, you can build a GNU SASL DLL and use it from other applications. After installing MinGW (http://mingw.org/) follow the generic installation instructions (see Downloading and Installing). The DLL is installed by default.
For information on how to use the DLL in other applications, see: http://www.mingw.org/mingwfaq.shtml#faq-msvcdll.
You can build GNU SASL as a native Visual Studio C++ project. This allows you to build the code for other platforms that VS supports, such as Windows Mobile. You need Visual Studio 2005 or later.
First download and unpack the archive as described in the generic
installation instructions (see Downloading and Installing). Don’t
run ./configure
. Instead, start Visual Studio and open the
project file lib/win32/libgsasl.sln inside the GNU SASL
directory. You should be able to build the project using Build
Project.
Output libraries will be written into the lib/win32/lib
(or
lib/win32/lib/debug
for Debug versions) folder.
Warning! Unless you build GNU SASL linked with libgcrypt, GNU SASL
uses the Windows function CryptGenRandom
for generating
cryptographic random data. The function is known to have some
security weaknesses. See http://eprint.iacr.org/2007/419 for
more information. The code will attempt to use the Intel RND crypto
provider if it is installed, see lib/gl/gc-gnulib.c.