From nobody Sat Oct 28 01:28:26 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SHMP71CYKz4yCcH; Sat, 28 Oct 2023 01:28:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SHMP70ltrz4tJD; Sat, 28 Oct 2023 01:28:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698456507; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a/A0WWRPBam81cuBjwrtMTp2rJ2XBF/xMuSFyw6xJGA=; b=CLGIfMjtbMlPqj7nkRyadBzBq1hRTSZZvxscatFl544ZRugRO/tH3PiITmMRFEm90iTXwg eeGUp2GNv4AeTI9cQGeg0raL0JbbjNRh+oBNn0+Br9kLnWyGqF0zvB3YGHpYaxMPrO/Fn0 vPAZS93dcK8Sk4Iz+PEl8QdjDvCI7Myl4Qz5U3ln+eIBLc9j9NIRqGNnheBpGFMFCar/5q tj7/l8WTEXP8tCUbKpR8llDg91S26ARQw5Mr1p3X1DDHVRKaSTE+GSa+xTPrxqpgtbieih Zsi9Yqax/O5KkRQM5vZ6/wPPbMYgdwb+X1T9cqJ5VMHsXFMpkXuACozjjPcVJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698456507; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a/A0WWRPBam81cuBjwrtMTp2rJ2XBF/xMuSFyw6xJGA=; b=pAfYy+oZxQf5hcfMDmig0lodg5Ka8ZbkoKF+QOEO6ecPj+qHxpxbtqpxBK476xkygNaK2y EbVeVHVKuSI1AIQgUrOX+AgVoq1Fc+gkuO5MuhpJDicnhJO2azv2SMaRLIiN2c6MvJagWZ EDjYMsQufcvXRrMlZyacgO2O8YxLu0WrCoNHqm5e718jIZkWmKa6MeJEUoZPSJe8GMalO4 YgcaQMq7d6NFzMaHIEYzYG2j397m120m6tTud2lnTox80KEAv/UF+8ReBPtOms/C3cyvTP IAFc4XIS1u6qfPCMTinpXayuMPAyXr7dhgNf1+93OY98uXXdGiIblfbEmcsCOw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698456507; a=rsa-sha256; cv=none; b=uxItqN1wAyXXZFhYjomemyrNZgjpfNCEvTKEg0PMK8DVOJh8pmcwV872IbCeskXDS4gstF YWeOIPXW4+Zl/oNTod20tt8/ffU0w0AD7wdjaZb+CxR0DY5DqJTjbEOjoR2WYUtJPu93UZ 4husrvvvyVKo71rIwF3IR+tFasvzBTUe9piNwD7QR2W2y/MTEikeYD1ePG1UbqjbYpYm/g MIGaS0RR8ZdyXQqA3vEWBDWOSutxZgQhKTq2WI8QQ4vBvjiOsnJuI47aQM1EerT0wrcIND +vat1YmiXZKPxP1Jnmrcl/J98A6bRlmAnLm7SYRMqlKv5s2iizVGQ6icpjNMaw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SHMP66yKxzc3b; Sat, 28 Oct 2023 01:28:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39S1SQW6077173; Sat, 28 Oct 2023 01:28:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39S1SQkk077170; Sat, 28 Oct 2023 01:28:26 GMT (envelope-from git) Date: Sat, 28 Oct 2023 01:28:26 GMT Message-Id: <202310280128.39S1SQkk077170@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Enji Cooper Subject: git: 8ef8da882ff4 - main - lib/libcrypt: remove trailing whitespace List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ngie X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8ef8da882ff475e3da3bde57d97593a68f7d97b2 Auto-Submitted: auto-generated The branch main has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=8ef8da882ff475e3da3bde57d97593a68f7d97b2 commit 8ef8da882ff475e3da3bde57d97593a68f7d97b2 Author: Enji Cooper AuthorDate: 2023-10-28 01:10:39 +0000 Commit: Enji Cooper CommitDate: 2023-10-28 01:28:01 +0000 lib/libcrypt: remove trailing whitespace No functional change intended. MFC after: 2 weeks --- lib/libcrypt/crypt-nthash.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libcrypt/crypt-nthash.c b/lib/libcrypt/crypt-nthash.c index 28c832dd6f9f..8bd880e625cc 100644 --- a/lib/libcrypt/crypt-nthash.c +++ b/lib/libcrypt/crypt-nthash.c @@ -57,17 +57,17 @@ crypt_nthash(const char *pw, const char *salt __unused, char *buffer) u_char hash[MD4_SIZE]; const char *s; MD4_CTX ctx; - - bzero(unipw, sizeof(unipw)); + + bzero(unipw, sizeof(unipw)); /* convert to unicode (thanx Archie) */ unipwLen = 0; for (s = pw; unipwLen < sizeof(unipw) / 2 && *s; s++) unipw[unipwLen++] = htons(*s << 8); - + /* Compute MD4 of Unicode password */ MD4Init(&ctx); MD4Update(&ctx, (u_char *)unipw, unipwLen*sizeof(u_int16_t)); - MD4Final(hash, &ctx); + MD4Final(hash, &ctx); buffer = stpcpy(buffer, magic); *buffer++ = '$';