Annotation of 43BSDReno/libexec/makekey/makekey.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1980 Regents of the University of California.
                      3:  * All rights reserved.  The Berkeley software License Agreement
                      4:  * specifies the terms and conditions for redistribution.
                      5:  */
                      6: 
                      7: #ifndef lint
                      8: char copyright[] =
                      9: "@(#) Copyright (c) 1980 Regents of the University of California.\n\
                     10:  All rights reserved.\n";
                     11: #endif not lint
                     12: 
                     13: #ifndef lint
                     14: static char sccsid[] = "@(#)makekey.c  5.1 (Berkeley) 6/6/85";
                     15: #endif not lint
                     16: 
                     17: /*
                     18:  * You send it 10 bytes.
                     19:  * It sends you 13 bytes.
                     20:  * The transformation is expensive to perform
                     21:  * (a significant part of a second).
                     22:  */
                     23: 
                     24: char   *crypt();
                     25: 
                     26: main()
                     27: {
                     28:        char key[8];
                     29:        char salt[2];
                     30:        
                     31:        read(0, key, 8);
                     32:        read(0, salt, 2);
                     33:        write(1, crypt(key, salt), 13);
                     34:        return(0);
                     35: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.