-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi --
Below are the steps necessary to compile libgcrypt v1.2.1 into a
Windows DLL:
0.) Download & install MinGW, MSYS, and msysDTK
(http://www.mingw.org/)
1.) Within an MSYS shell, compile and install libgpg-error:
$ tar xjf libgpg-error-1.0.tar.bz2
$ cd libgpg-error-1.0
$ ./configure && make && make install
2.) Download this patch into the '~/libgcrypt-1.2.1' directory
and apply it to the libgcrypt sources:
http://www.securitypunk.com/misc/libgcrypt_dll.patch
$ tar xjf libgcrypt-1.2.1.tar.bz2
$ cd libgcrypt-1.2.1
$ patch -p1 < libgcrypt_dll.patch
3.) Regenerate the 'configure' script:
$ aclocal -I .
$ automake --add-missing --copy
$ autoconf
4.) Compile and install:
$ ./configure && make && make install
5.) Download the DLL export list into the '~/libgcrypt-1.2.1'
directory and build the DLL:
http://www.securitypunk.com/misc/libgcrypt.def
$ gcc -shared -o libgcrypt.dll libgcrypt.def \
/usr/local/lib/libgcrypt.a /usr/local/lib/libgpg-error.a
6.) Optionally, you may want to strip the DLL file of debugging
symbols, as this will shrink the file size down from ~3MB to
~300KB:
$ strip libgcrypt.dll
7.) If you are going to use MSYS to continue developing with
the libgcrypt DLL, you need to remove the installed
'libgcrypt.a' file otherwise you'll get very strange linker
errors (I think this is a MinGW bug...):
$ rm /usr/local/lib/libgcrypt.a
The patch applied to the libgcrypt sources should only be used to
create the DLL. If you attempt to link libgcrypt staticly after the
patch was applied, the random number generator will fail since it is
initialized inside DllMain() (which is normally called by Windows after
the DLL is loaded). So, all of the test programs in the 'tests/'
directory will fail. This is normal.
This patch also replaces the very slow win32 entropy gatherer included
in libgcrypt with much faster CryptoAPI functions.
- Joe
P.S. To the libgcrypt team: could you please apply the 'acinclude.m4'
patch block to the official sources? Thanks!
- --
http://www.securitypunk.com/
http://www.hacktivismo.com/
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD0E127F7
BF7E 3227 FF82 466E 7FA1 305D 02BC D51A D0E1 27F7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFCBYayArzVGtDhJ/cRAlJBAJ9LFEDAP6WXSUo6Q+pkKXeyyn4pHgCfY8I4
wYkXnHe1DtswBm+xo0gI+bI=
=gm8w
-----END PGP SIGNATURE-----
--
This e-mail was sent anonymously. Do not reply to it.
If this e-mail contains any threatening or harassing content, please visit http://www.securitypunk.com/mailer/abuse.hax
Hash: SHA1
Hi --
Below are the steps necessary to compile libgcrypt v1.2.1 into a
Windows DLL:
0.) Download & install MinGW, MSYS, and msysDTK
(http://www.mingw.org/)
1.) Within an MSYS shell, compile and install libgpg-error:
$ tar xjf libgpg-error-1.0.tar.bz2
$ cd libgpg-error-1.0
$ ./configure && make && make install
2.) Download this patch into the '~/libgcrypt-1.2.1' directory
and apply it to the libgcrypt sources:
http://www.securitypunk.com/misc/libgcrypt_dll.patch
$ tar xjf libgcrypt-1.2.1.tar.bz2
$ cd libgcrypt-1.2.1
$ patch -p1 < libgcrypt_dll.patch
3.) Regenerate the 'configure' script:
$ aclocal -I .
$ automake --add-missing --copy
$ autoconf
4.) Compile and install:
$ ./configure && make && make install
5.) Download the DLL export list into the '~/libgcrypt-1.2.1'
directory and build the DLL:
http://www.securitypunk.com/misc/libgcrypt.def
$ gcc -shared -o libgcrypt.dll libgcrypt.def \
/usr/local/lib/libgcrypt.a /usr/local/lib/libgpg-error.a
6.) Optionally, you may want to strip the DLL file of debugging
symbols, as this will shrink the file size down from ~3MB to
~300KB:
$ strip libgcrypt.dll
7.) If you are going to use MSYS to continue developing with
the libgcrypt DLL, you need to remove the installed
'libgcrypt.a' file otherwise you'll get very strange linker
errors (I think this is a MinGW bug...):
$ rm /usr/local/lib/libgcrypt.a
The patch applied to the libgcrypt sources should only be used to
create the DLL. If you attempt to link libgcrypt staticly after the
patch was applied, the random number generator will fail since it is
initialized inside DllMain() (which is normally called by Windows after
the DLL is loaded). So, all of the test programs in the 'tests/'
directory will fail. This is normal.
This patch also replaces the very slow win32 entropy gatherer included
in libgcrypt with much faster CryptoAPI functions.
- Joe
P.S. To the libgcrypt team: could you please apply the 'acinclude.m4'
patch block to the official sources? Thanks!
- --
http://www.securitypunk.com/
http://www.hacktivismo.com/
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD0E127F7
BF7E 3227 FF82 466E 7FA1 305D 02BC D51A D0E1 27F7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFCBYayArzVGtDhJ/cRAlJBAJ9LFEDAP6WXSUo6Q+pkKXeyyn4pHgCfY8I4
wYkXnHe1DtswBm+xo0gI+bI=
=gm8w
-----END PGP SIGNATURE-----
--
This e-mail was sent anonymously. Do not reply to it.
If this e-mail contains any threatening or harassing content, please visit http://www.securitypunk.com/mailer/abuse.hax