=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/authfile.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/ssh/authfile.c 1999/09/28 04:45:35 1.3 +++ src/usr.bin/ssh/authfile.c 1999/09/30 16:34:21 1.4 @@ -15,7 +15,7 @@ */ #include "includes.h" -RCSID("$Id: authfile.c,v 1.3 1999/09/28 04:45:35 provos Exp $"); +RCSID("$Id: authfile.c,v 1.4 1999/09/30 16:34:21 provos Exp $"); #include #include "xmalloc.h" @@ -267,7 +267,8 @@ xfree(buffer_get_string(&buffer, NULL)); /* Check that it is a supported cipher. */ - if ((cipher_mask() & (1 << cipher_type)) == 0) + if (cipher_type != SSH_CIPHER_NONE && + (cipher_mask() & (1 << cipher_type)) == 0) { debug("Unsupported cipher %.100s used in key file %.200s.", cipher_name(cipher_type), filename);