diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2000-11-12 12:28:21 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2000-11-12 12:28:21 +0000 |
commit | 7f4e8607ee88b42850e9dcbe83502471d948892b (patch) | |
tree | 3d7fc16c17038e86d2ea16ee069c49acc8d06b9f /lib | |
parent | 0ab2e964b52b1a0716a72e3bb80de5fb9888625b (diff) | |
download | gnutls-7f4e8607ee88b42850e9dcbe83502471d948892b.tar.gz |
fix for DES in mcrypt
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gnutls_cipher_int.c | 7 |
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); |