From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id A2C1F6D542 for ; Thu, 1 Apr 2021 11:54:16 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A0D8919CFC for ; Thu, 1 Apr 2021 11:54:16 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 2CB1B19CEF for ; Thu, 1 Apr 2021 11:54:16 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id ED98F428FD for ; Thu, 1 Apr 2021 11:54:15 +0200 (CEST) Message-ID: <577628ea-77b7-e5b4-c84a-6366bb349e1e@proxmox.com> Date: Thu, 1 Apr 2021 11:54:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:88.0) Gecko/20100101 Thunderbird/88.0 Content-Language: en-US To: Proxmox Backup Server development discussion , Stefan Reiter References: <20210331102202.14767-1-s.reiter@proxmox.com> <20210331102202.14767-6-s.reiter@proxmox.com> From: Thomas Lamprecht In-Reply-To: <20210331102202.14767-6-s.reiter@proxmox.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.044 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [snapshot.rs, mount.rs, benchmark.rs, proxmox-backup-client.rs, mod.rs, catalog.rs, key.rs] Subject: [pbs-devel] applied: [PATCH v3 proxmox-backup 05/20] proxmox_client_tools: move common key related functions to key_source.rs X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Apr 2021 09:54:16 -0000 On 31.03.21 12:21, Stefan Reiter wrote: > Add a new module containing key-related functions and schemata from all > over, code moved is not changed as much as possible. > > Requires adapting some 'use' statements across proxmox-backup-client and > putting the XDG helpers quite cozily into proxmox_client_tools/mod.rs > > Signed-off-by: Stefan Reiter > --- > > v2: > * don't move entire key.rs, just what is necessary > > src/bin/proxmox-backup-client.rs | 453 +--------------- > src/bin/proxmox_backup_client/benchmark.rs | 4 +- > src/bin/proxmox_backup_client/catalog.rs | 3 +- > src/bin/proxmox_backup_client/key.rs | 112 +--- > src/bin/proxmox_backup_client/mod.rs | 28 - > src/bin/proxmox_backup_client/mount.rs | 4 +- > src/bin/proxmox_backup_client/snapshot.rs | 4 +- > src/bin/proxmox_client_tools/key_source.rs | 573 +++++++++++++++++++++ > src/bin/proxmox_client_tools/mod.rs | 48 +- > 9 files changed, 631 insertions(+), 598 deletions(-) > create mode 100644 src/bin/proxmox_client_tools/key_source.rs > > applied, thanks!