summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2000-11-12 12:28:21 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2000-11-12 12:28:21 +0000
commit7f4e8607ee88b42850e9dcbe83502471d948892b (patch)
tree3d7fc16c17038e86d2ea16ee069c49acc8d06b9f /lib
parent0ab2e964b52b1a0716a72e3bb80de5fb9888625b (diff)
downloadgnutls-7f4e8607ee88b42850e9dcbe83502471d948892b.tar.gz
fix for DES in mcrypt
Diffstat (limited to 'lib')
-rw-r--r--lib/gnutls_cipher_int.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/gnutls_cipher_int.c b/lib/gnutls_cipher_int.c
index 8c6345c2aa..c0bcce6e1f 100644
--- a/lib/gnutls_cipher_int.c
+++ b/lib/gnutls_cipher_int.c
@@ -31,6 +31,13 @@ GNUTLS_CIPHER_HANDLE ret;
case GNUTLS_NULL:
ret = GNUTLS_CIPHER_FAILED;
break;
+ case GNUTLS_DES:
+#ifdef USE_MCRYPT
+ ret = mcrypt_module_open( "des", NULL, "cbc", NULL);
+#else
+ ret = GNUTLS_CIPHER_FAILED;
+#endif
+ break;
case GNUTLS_3DES:
#ifdef USE_MCRYPT
ret = mcrypt_module_open( "tripledes", NULL, "cbc", NULL);