From nobody Sat Sep 28 03:57:57 2024 X-Original-To: dev-commits-src-all@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 4XFtpY5bfwz5XhTK; Sat, 28 Sep 2024 03:57:57 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XFtpY3fQdz4S2B; Sat, 28 Sep 2024 03:57:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727495877; 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=T1dFEVazFRCF6B+uX+VKfndhQyvX5p5hbsVsBG3KLSI=; b=VRkXBfQq4Ho0OSiW54QCnc/UgOfVDVDe6WX7G/KQLaARmIFxxDTNdLr6yGvXo7N14Sejyu dzyHpAMYZYIAZMLn5/60sduaxRns84KY6iwKwPPpgGZm/MsYx6paob66klz8Zo3/WrFwKV WbMf601E07IGx4Lcs1jWXi7mm8pz0aMwyHCj8ooCtFcaaYVaUt+vrk8jv6WVCCXXnvJfmg yePcCSERQv/nslTcOPR3voh9olvct2d4SkfPorQ66VbhGZbCi/tT0QmHtRF0VdOpj4d/fA xXaO0aHzceUiz48A7zyq7FfbkLB2rOGIo4CPfrl/ebbAXRLj0x+uTukt1KjLAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727495877; 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=T1dFEVazFRCF6B+uX+VKfndhQyvX5p5hbsVsBG3KLSI=; b=bhSd2ULYK0ZMpCbCBM8mv+lvA+GBy9JV3iDZt0KGx0AlQPeTiRQq/WJqWCWbhWL7fbbVQ3 0HrdUH4m/s6HBNlRmionpxFzzWiFKrJKBwqmQPsJsy3mgoG4yflUbKkAvhQ0StQOCH2CQX bvPuL/1I/oIzA46JjqPjzQRhbLbNSs5jZPL3CUf6oS5KRQkbRIehfG7S3Y+Co1BHFyxGXv 6i3y2ylAm39Aanjb4ankZgcQcm/9e4xX6mVAssMRdpHZnsGYkUhocz2eiu8Wsf3jwlrxvM UG/IgIh7Zj5bcZbrQdr1oYeOswie50inkfduIPvdCzVjaaNypbO2olrJC/3Tow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727495877; a=rsa-sha256; cv=none; b=BNoVRZE4z5OJIejIPCYDNQuMAajBsjv16iUaKACDBh76P+rfavk9nUfPjwG2exC7rH9kCo uX+PtoyEIlPihE3LFDvpF2N8Pl1G9h9PpX6y34AMYWHPhgiOwz+xMnT6UGE9c9mF8sfwLr M7SlCyfV055WbNMy8BWNZ8m36YzuZQiVdfG75vg6w1OOnmQ/c0fIXZjn5GJADKxLGXBbhJ /vw9lWB9nolGBCnFJyrTAdiSffY1vw0EaO0VMbHyfnSDtfYsvqyDG1mcR2eyFjO4frxVlv vTFEErICYJDtPc6xi4i9VW5tRI+mF4vwZHF9WlrtsA2B0AAnR6Y16rbEQDwnRg== 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 4XFtpY2m4rz17gG; Sat, 28 Sep 2024 03:57:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48S3vvrP015504; Sat, 28 Sep 2024 03:57:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48S3vvVW015501; Sat, 28 Sep 2024 03:57:57 GMT (envelope-from git) Date: Sat, 28 Sep 2024 03:57:57 GMT Message-Id: <202409280357.48S3vvVW015501@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Enji Cooper Subject: git: c6961c90fd2a - stable/14 - lib/libcrypt: remove trailing whitespace List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/stable/14 X-Git-Reftype: branch X-Git-Commit: c6961c90fd2a320a0e4da1771dc47a1fe8f56b0b Auto-Submitted: auto-generated The branch stable/14 has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=c6961c90fd2a320a0e4da1771dc47a1fe8f56b0b commit c6961c90fd2a320a0e4da1771dc47a1fe8f56b0b Author: Enji Cooper AuthorDate: 2023-10-28 01:10:39 +0000 Commit: Enji Cooper CommitDate: 2024-09-28 03:57:45 +0000 lib/libcrypt: remove trailing whitespace No functional change intended. MFC after: 2 weeks (cherry picked from commit 8ef8da882ff475e3da3bde57d97593a68f7d97b2) --- 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++ = '$';