aboutsummaryrefslogtreecommitdiff
path: root/crypto.c
diff options
context:
space:
mode:
authorAdriaan de Jong2011-06-23 09:41:28 +0200
committerDavid Sommerseth2011-10-19 22:05:45 +0200
commit23ee3563de28820919fe83f8f5b7289dc4ed42ae (patch)
treec34550b54b8ed462ebff249e7fc634cd94056026 /crypto.c
parentb5738e5b858274785eff30edb4748e3f641e0b1c (diff)
downloadopenvpn-23ee3563de28820919fe83f8f5b7289dc4ed42ae.zip
openvpn-23ee3563de28820919fe83f8f5b7289dc4ed42ae.tar.gz
Refactored maximum cipher and hmac length constants
Signed-off-by: Adriaan de Jong <dejong@fox-it.com> Acked-by: David Sommerseth <davids@redhat.com> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'crypto.c')
-rw-r--r--crypto.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/crypto.c b/crypto.c
index 8af5b7a..a1986e0 100644
--- a/crypto.c
+++ b/crypto.c
@@ -34,18 +34,6 @@
#include "memdbg.h"
/*
- * Check for key size creepage.
- */
-
-#if MAX_CIPHER_KEY_LENGTH < EVP_MAX_KEY_LENGTH
-#warning Some OpenSSL EVP ciphers now support key lengths greater than MAX_CIPHER_KEY_LENGTH -- consider increasing MAX_CIPHER_KEY_LENGTH
-#endif
-
-#if MAX_HMAC_KEY_LENGTH < EVP_MAX_MD_SIZE
-#warning Some OpenSSL HMAC message digests now support key lengths greater than MAX_HMAC_KEY_LENGTH -- consider increasing MAX_HMAC_KEY_LENGTH
-#endif
-
-/*
* Encryption and Compression Routines.
*
* On entry, buf contains the input data and length.