From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id E5D5C3858D1E for ; Sat, 3 Sep 2022 00:13:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E5D5C3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662163986; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=0n5cem1dDBM3ptvGhN5+1TsPQuqrsP5vTVET4A1k1aM=; b=K6D+YXFxz1pCQ+02cXQcYhuB72zH0AtYbR1RFmWONGKmb7zWkHPaIQudc8EvdtNfvbmZpk kHhgF86AnlUjsaTh/qiYLWv2gcpFkNcnNIAQwwYUC+IfWMrVhBvUYylm7apeQX79cOG5OO qD8MAd8nFJv8U39cwROPzfrHEF/MNOo= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-507-m48MJS3jMjKAf_WnvlDSyw-1; Fri, 02 Sep 2022 20:13:05 -0400 X-MC-Unique: m48MJS3jMjKAf_WnvlDSyw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2E5F680418F for ; Sat, 3 Sep 2022 00:13:05 +0000 (UTC) Received: from redhat.com (unknown [10.2.17.198]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1FD9C2026D4C for ; Sat, 3 Sep 2022 00:13:05 +0000 (UTC) Received: from fche by redhat.com with local (Exim 4.94.2) (envelope-from ) id 1oUGmW-0007Pk-F3 for elfutils-devel@sourceware.org; Fri, 02 Sep 2022 20:13:04 -0400 Date: Fri, 2 Sep 2022 20:13:04 -0400 From: "Frank Ch. Eigler" To: elfutils-devel@sourceware.org Subject: [patch git] PR28284 - debuginfod x-debuginfod* header processing Message-ID: <20220903001304.GA20286@redhat.com> MIME-Version: 1.0 User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi - I had a bit of time to tweak Noah Sanci's PR28284 work, and I believe it addresses Mark's last set of comments (from a while ago). This follow-up patch corrects things like case sensitivity, spacing, \r\n processing, and tweaks documentation. The gist of it is to add a new client api function debuginfod_get_headers(), documented to return x-debuginfod* headers from current or previous fetch requests. debuginfod-find prints those in -v verbose mode, and debuginfod relays them in federation. This stuff is an enabler for rgoldber's subsequent signature-passing/checking code, to which I plan to turn my attention next. Please see users/fche/try-pr28284d for this draft of the code. I'd like to keep it as two separate commits to preserve Noah's id in the git history, even though that makes it a bit harder to give a final review. git diff --stat origin/master...origin/users/fche/try-pr28284d debuginfod/ChangeLog | 22 ++++++++++++++++++++++ debuginfod/debuginfod-client.c | 24 ++++++++++++++++++------ debuginfod/debuginfod-find.c | 3 +++ debuginfod/debuginfod.cxx | 22 ++++++++++++++++++++++ debuginfod/debuginfod.h.in | 4 ++++ debuginfod/libdebuginfod.map | 3 +++ doc/ChangeLog | 10 ++++++++++ doc/debuginfod_find_debuginfo.3 | 14 ++++++++++++++ doc/debuginfod_get_headers.3 | 2 ++ tests/ChangeLog | 12 ++++++++++++ tests/run-debuginfod-response-headers.sh | 53 +++++++++++++++++++++++++++++++++++++++++++++-------- 11 files changed, 155 insertions(+), 14 deletions(-) - FChE