From 0d759ee9113b371a678c4acafffafa79570e9511 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Fri, 2 Oct 2020 21:03:25 -0400 Subject: Reimplement attestation for in-header hashes Rewrite attestation to implement in-header hashing and signing. For now, just implementing mode=pgp, but other modes are coming next. Signed-off-by: Konstantin Ryabitsev --- b4/command.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'b4/command.py') diff --git a/b4/command.py b/b4/command.py index ffa58ef..d3624e9 100644 --- a/b4/command.py +++ b/b4/command.py @@ -42,7 +42,7 @@ def cmd_am(cmdargs): def cmd_attest(cmdargs): import b4.attest - b4.attest.create_attestation(cmdargs) + b4.attest.attest_patches(cmdargs) def cmd_verify(cmdargs): @@ -116,14 +116,13 @@ def cmd(): sp_am.set_defaults(func=cmd_am) # b4 attest - sp_att = subparsers.add_parser('attest', help='Submit cryptographic attestation for patches') - # GDPR-proofing: by default, we add as little PII-sensitive info as possible - sp_att.add_argument('-f', '--from', dest='sender', default='devnull@kernel.org', - help='Use a custom From field') + sp_att = subparsers.add_parser('attest', help='Create cryptographic attestation for a set of patches') + sp_att.add_argument('-f', '--from', dest='sender', default=None, + help='OBSOLETE: this option does nothing and will be removed') sp_att.add_argument('-n', '--no-submit', dest='nosubmit', action='store_true', default=False, - help='Do not submit attestation, just save the message ready to send') - sp_att.add_argument('-o', '--output', default='xxxx-attestation-letter.patch', - help='Save attestation message in this file if not submitting it') + help='OBSOLETE: this option does nothing and will be removed') + sp_att.add_argument('-o', '--output', default=None, + help='OBSOLETE: this option does nothing and will be removed') sp_att.add_argument('patchfile', nargs='+', help='Patches to attest') sp_att.set_defaults(func=cmd_attest) -- cgit v1.2.3