Use conditional compilation for cryptographic functions.
authorGuus Sliepen <guus@tinc-vpn.org>
Wed, 1 May 2013 15:17:22 +0000 (17:17 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Wed, 1 May 2013 15:17:22 +0000 (17:17 +0200)
commit9b9230a0a79c670b86f54fadd2807b864ff9d91f
tree6698347b2fde3225754fbf9a8272ac918eaee512
parente70b5b5bd77bb66e8dd324c17d86d9bff151aa82
Use conditional compilation for cryptographic functions.

This gets rid of the rest of the symbolic links. However, as a consequence, the
crypto header files have now moved to src/, and can no longer contain
library-specific declarations. Therefore, cipher_t, digest_t, ecdh_t, ecdsa_t
and rsa_t are now all opaque types, and only pointers to those types can be
used.
35 files changed:
Makefile.am
configure.ac
src/Makefile.am
src/connection.c
src/connection.h
src/gcrypt/ecdh.c [moved from src/openssl/ecdh.h with 60% similarity]
src/gcrypt/ecdsa.c [new file with mode: 0644]
src/gcrypt/ecdsagen.c [moved from src/openssl/ecdsagen.h with 57% similarity]
src/gcrypt/prf.c [moved from src/openssl/crypto.h with 64% similarity]
src/meta.c
src/net_packet.c
src/net_setup.c
src/node.c
src/node.h
src/openssl/cipher.c
src/openssl/cipher.h [deleted file]
src/openssl/crypto.c
src/openssl/digest.c
src/openssl/digest.h
src/openssl/ecdh.c
src/openssl/ecdsa.c
src/openssl/ecdsa.h [deleted file]
src/openssl/ecdsagen.c
src/openssl/prf.c
src/openssl/prf.h [deleted file]
src/openssl/rsa.c
src/openssl/rsa.h [deleted file]
src/openssl/rsagen.c
src/openssl/rsagen.h [deleted file]
src/protocol_auth.c
src/protocol_key.c
src/sptps.c
src/sptps.h
src/sptps_test.c
src/tincctl.c