From f9a70437820d05f7f98ffd1c9003edd83872e9b5 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 15 May 1998 18:49:19 +0000 Subject: new release --- g10/passphrase.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'g10/passphrase.c') diff --git a/g10/passphrase.c b/g10/passphrase.c index 5bd3eacbd..d3b882fa8 100644 --- a/g10/passphrase.c +++ b/g10/passphrase.c @@ -30,6 +30,7 @@ #include "ttyio.h" #include "cipher.h" #include "keydb.h" +#include "main.h" static int pwfd = -1; @@ -69,10 +70,11 @@ passphrase_to_dek( u32 *keyid, int cipher_algo, STRING2KEY *s2k, int mode ) s2k = &help_s2k; s2k->mode = 0; /* this should be MD5 if cipher is IDEA, but because we do - * not have IDEA, we use the default one, the the user + * not have IDEA, we use the default one, the user * can select it from the commandline */ - s2k->hash_algo = opt.def_digest_algo; + s2k->hash_algo = opt.def_digest_algo?opt.def_digest_algo + :DEFAULT_DIGEST_ALGO; } if( keyid && !opt.batch ) { -- cgit v1.2.3