X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=libbb%2Fpw_encrypt.c;h=f6085f3d2c541fedab12a8890828381e7845ec40;hb=079f8afa0a16112cbaf7012c82b38b7358b82141;hp=94967133c9fc02d8b2891e4fed5f3484323fc9ed;hpb=ea224be6aa8fed5486376d3021a4cb911e935106;p=oweals%2Fbusybox.git diff --git a/libbb/pw_encrypt.c b/libbb/pw_encrypt.c index 94967133c..f6085f3d2 100644 --- a/libbb/pw_encrypt.c +++ b/libbb/pw_encrypt.c @@ -4,33 +4,19 @@ * * Copyright (C) 1999-2004 by Erik Andersen * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ #include "libbb.h" #include #include - char *pw_encrypt(const char *clear, const char *salt) { static char cipher[128]; char *cp; -#ifdef CONFIG_FEATURE_SHA1_PASSWORDS +#if 0 /* was CONFIG_FEATURE_SHA1_PASSWORDS, but there is no such thing??? */ if (strncmp(salt, "$2$", 3) == 0) { return sha1_crypt(clear); } @@ -42,4 +28,3 @@ char *pw_encrypt(const char *clear, const char *salt) safe_strncpy(cipher, cp, sizeof(cipher)); return cipher; } -