crypt.c (115720) | crypt.c (220497) |
---|---|
1/* 2 * Copyright (c) 1999 3 * Mark Murray. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1999 3 * Mark Murray. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/lib/libcrypt/crypt.c 115720 2003-06-02 19:29:27Z markm $"); | 28__FBSDID("$FreeBSD: head/lib/libcrypt/crypt.c 220497 2011-04-09 14:02:04Z markm $"); |
29 30#include <sys/types.h> 31#include <string.h> 32#include <libutil.h> 33#include <unistd.h> 34#include "crypt.h" 35 36static const struct { --- 21 unchanged lines hidden (view full) --- 58 }, 59#endif 60 { 61 "nth", 62 crypt_nthash, 63 "$3$" 64 }, 65 { | 29 30#include <sys/types.h> 31#include <string.h> 32#include <libutil.h> 33#include <unistd.h> 34#include "crypt.h" 35 36static const struct { --- 21 unchanged lines hidden (view full) --- 58 }, 59#endif 60 { 61 "nth", 62 crypt_nthash, 63 "$3$" 64 }, 65 { |
66 "sha256", 67 sha256_crypt, 68 "$5$" 69 }, 70 { 71 "sha512", 72 sha512_crypt, 73 "$6$" 74 }, 75 { |
|
66 NULL, 67 NULL, 68 NULL 69 } 70}; 71 72static int crypt_type = -1; 73 --- 58 unchanged lines hidden --- | 76 NULL, 77 NULL, 78 NULL 79 } 80}; 81 82static int crypt_type = -1; 83 --- 58 unchanged lines hidden --- |