Provide the Diffie Hellman parameters from a central location, so that we do not...
authorTobias Brunner <tobias@strongswan.org>
Tue, 9 Mar 2010 16:15:16 +0000 (17:15 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 9 Mar 2010 16:15:16 +0000 (17:15 +0100)
commit908d571796173929f89790da9b4ba854a2651762
treea3828bc6fd615f710790aae1a8f240e5e7aa222b
parent38031382dc1abb3b0f5f5e856e1894f05ad68cd3
Provide the Diffie Hellman parameters from a central location, so that we do not have to replicate them in every plugin that implements the DH interface.

The main reason for this change is that Android's libcrypto does not
include the get_rfcX_prime_Y functions by default.  Therefore we would
have had to replicate the primes a third time.
src/libstrongswan/crypto/diffie_hellman.c
src/libstrongswan/crypto/diffie_hellman.h
src/libstrongswan/plugins/gcrypt/gcrypt_dh.c
src/libstrongswan/plugins/gmp/gmp_diffie_hellman.c
src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c