From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web08.11304.1623154388421637847 for ; Tue, 08 Jun 2021 05:13:08 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JkZPITOT; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623154387; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AJVztNomGBamfLsmvuEGIy+9iSOM+Irl6dAzegCSHWw=; b=JkZPITOTTtxOncLX/3uc6ZI8Wbqm06/cwjdjFP6lq5DPQuTBUdPljIFmt1RLeL4JYf4Cwh F5KAmyAu1gYZC4jj0Q3LmuEE/l1Y60NLSpHjtUClNon1Pth93asouLbTObrA2bdovNoBWo rAeVI0KQhVUCOxjnkeiH/o0ECLJDoho= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-338-0v7XXF6IMviM9L0Bo1arMA-1; Tue, 08 Jun 2021 08:13:06 -0400 X-MC-Unique: 0v7XXF6IMviM9L0Bo1arMA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 37BC5106BAAC; Tue, 8 Jun 2021 12:13:05 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-113-27.ams2.redhat.com [10.36.113.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id ED48D620DE; Tue, 8 Jun 2021 12:13:03 +0000 (UTC) From: "Laszlo Ersek" To: edk2-devel-groups-io Cc: Jiaxin Wu , Maciej Rabeda , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Siyuan Fu Subject: [PUBLIC edk2 PATCH v2 02/10] NetworkPkg/IScsiDxe: simplify "ISCSI_CHAP_AUTH_DATA.InChallenge" size Date: Tue, 8 Jun 2021 14:12:51 +0200 Message-Id: <20210608121259.32451-3-lersek@redhat.com> In-Reply-To: <20210608121259.32451-1-lersek@redhat.com> References: <20210608121259.32451-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=lersek@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 VGhlIElTQ1NJX0NIQVBfQVVUSF9NQVhfTEVOIG1hY3JvIGlzIGRlZmluZWQgd2l0aCB2YWx1ZSAx MDI0LgoKVGhlIHVzYWdlIG9mIHRoaXMgbWFjcm8gY3VycmVudGx5IGludm9sdmVzIGEgc2VtYW50 aWMgKG5vdCBmdW5jdGlvbmFsKQpidWcsIHdoaWNoIHdlJ3JlIGdvaW5nIHRvIGZpeCBpbiBhIHN1 YnNlcXVlbnQgcGF0Y2gsIGVsaW1pbmF0aW5nCklTQ1NJX0NIQVBfQVVUSF9NQVhfTEVOIGFsdG9n ZXRoZXIuCgpGb3Igbm93LCByZW1vdmUgdGhlIG1hY3JvJ3MgdXNhZ2UgZnJvbSBhbGwKIklTQ1NJ X0NIQVBfQVVUSF9EQVRBLkluQ2hhbGxlbmdlIiBjb250ZXh0cy4gVGhpcyBpcyBkb2FibGUgd2l0 aG91dApkdXBsaWNhdGluZyBvcGVuLWNvZGVkIGNvbnN0YW50cy4KCk5vIGNoYW5nZXMgaW4gZnVu Y3Rpb25hbGl0eS4KCkNjOiBKaWF4aW4gV3UgPGpp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