X-Git-Url: https://git.distorted.org.uk/~mdw/become/blobdiff_plain/607937a4e1c4cdb3da09617fa7bfda536278ca95..c758e6541ca05409b178dd9629e9337494c49890:/src/check.c diff --git a/src/check.c b/src/check.c index 34d1e52..1a7d507 100644 --- a/src/check.c +++ b/src/check.c @@ -1,10 +1,10 @@ /* -*-c-*- * - * $Id: check.c,v 1.3 1997/08/07 09:49:38 mdw Exp $ + * $Id: check.c,v 1.6 1998/01/12 16:45:47 mdw Exp $ * * Check validity of requests * - * (c) 1997 EBI + * (c) 1998 EBI */ /*----- Licensing notice --------------------------------------------------* @@ -29,9 +29,20 @@ /*----- Revision history --------------------------------------------------* * * $Log: check.c,v $ - * Revision 1.3 1997/08/07 09:49:38 mdw - * Extensive modifications to handle netgroups. Also sanitise user and group - * names before adding them to the symbol table. + * Revision 1.6 1998/01/12 16:45:47 mdw + * Fix copyright date. + * + * Revision 1.5 1997/09/26 09:14:58 mdw + * Merged blowfish branch into trunk. + * + * Revision 1.4.2.1 1997/09/26 09:08:01 mdw + * Use the Blowfish encryption algorithm instead of IDEA. This is partly + * because I prefer Blowfish (without any particularly strong evidence) but + * mainly because IDEA is patented and Blowfish isn't. + * + * Revision 1.4 1997/08/07 09:52:05 mdw + * (Log entry for previous version is bogus.) Added support for multiple + * servers. * * Revision 1.2 1997/08/04 10:24:20 mdw * Sources placed under CVS control. @@ -68,9 +79,9 @@ /* --- Local headers --- */ #include "become.h" +#include "blowfish.h" #include "config.h" #include "crypt.h" -#include "idea.h" #include "lexer.h" #include "name.h" #include "netg.h" @@ -133,14 +144,14 @@ static int check__ask(request *rq, struct sockaddr_in *serv, size_t n_serv) { int fd; unsigned char crq[crq_size]; - unsigned char sk[IDEA_KEYSIZE]; + unsigned char sk[BLOWFISH_KEYSIZE]; time_t t; pid_t pid; /* --- First, build the encrypted request packet --- */ { - unsigned char k[IDEA_KEYSIZE]; + unsigned char k[BLOWFISH_KEYSIZE]; FILE *fp; /* --- Read in the encryption key --- */