Deleted Added
full compact
xcrypt.c (50476) xcrypt.c (84220)
1/*
2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3 * unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part. Users
5 * may copy or modify Sun RPC without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user.
8 *

--- 18 unchanged lines hidden (view full) ---

27 * Mountain View, California 94043
28 */
29/*
30 * Hex encryption/decryption and utility routines
31 *
32 * Copyright (C) 1986, Sun Microsystems, Inc.
33 */
34
1/*
2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3 * unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part. Users
5 * may copy or modify Sun RPC without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user.
8 *

--- 18 unchanged lines hidden (view full) ---

27 * Mountain View, California 94043
28 */
29/*
30 * Hex encryption/decryption and utility routines
31 *
32 * Copyright (C) 1986, Sun Microsystems, Inc.
33 */
34
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD: head/lib/librpcsvc/xcrypt.c 84220 2001-09-30 22:15:15Z dillon $");
37
35#include <stdio.h>
36#include <stdlib.h>
37#include <string.h>
38#include <stdio.h>
39#include <stdlib.h>
40#include <string.h>
38#include <sys/cdefs.h>
39#include <rpc/des_crypt.h>
40
41#include <rpc/des_crypt.h>
42
41#ifndef lint
42/*from: static char sccsid[] = "@(#)xcrypt.c 2.2 88/08/10 4.0 RPCSRC"; */
43static const char rcsid[] = "$FreeBSD: head/lib/librpcsvc/xcrypt.c 50476 1999-08-28 00:22:10Z peter $";
44#endif
45
46static char hex[]; /* forward */
47static char hexval __P(( char ));
48static void bin2hex __P(( int, unsigned char *, char * ));
49static void hex2bin __P(( int, char *, char * ));
50void passwd2des __P(( char *, char * ));
51
52/*
53 * Encrypt a secret key given passwd

--- 139 unchanged lines hidden ---
43static char hex[]; /* forward */
44static char hexval __P(( char ));
45static void bin2hex __P(( int, unsigned char *, char * ));
46static void hex2bin __P(( int, char *, char * ));
47void passwd2des __P(( char *, char * ));
48
49/*
50 * Encrypt a secret key given passwd

--- 139 unchanged lines hidden ---