All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hauke Mehrtens <hauke@hauke-m.de>
To: johannes@sipsolutions.net
Cc: backports@vger.kernel.org, Hauke Mehrtens <hauke@hauke-m.de>
Subject: [PATCH 10/12] backports: Remove unused code from backport-public_key.h
Date: Sun,  2 Dec 2018 12:52:24 +0100	[thread overview]
Message-ID: <20181202115226.3594-11-hauke@hauke-m.de> (raw)
In-Reply-To: <20181202115226.3594-1-hauke@hauke-m.de>

These functions declared in backport-public_key.h are not implemented in
backports, and they were causing warnings because kernel_pkey_params was
not declared before.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 patches/verify.patch | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/patches/verify.patch b/patches/verify.patch
index 791de881..d52b7ce4 100644
--- a/patches/verify.patch
+++ b/patches/verify.patch
@@ -62,3 +62,40 @@
  struct x509_certificate {
  	struct x509_certificate *next;
  	struct x509_certificate *signer;	/* Certificate that signed this one */
+--- a/include/crypto/backport-public_key.h
++++ b/include/crypto/backport-public_key.h
+@@ -50,34 +50,6 @@ extern void public_key_signature_free(st
+ 
+ extern struct asymmetric_key_subtype public_key_subtype;
+ 
+-struct key;
+-struct key_type;
+-union key_payload;
+-
+-extern int restrict_link_by_signature(struct key *dest_keyring,
+-				      const struct key_type *type,
+-				      const union key_payload *payload,
+-				      struct key *trust_keyring);
+-
+-extern int restrict_link_by_key_or_keyring(struct key *dest_keyring,
+-					   const struct key_type *type,
+-					   const union key_payload *payload,
+-					   struct key *trusted);
+-
+-extern int restrict_link_by_key_or_keyring_chain(struct key *trust_keyring,
+-						 const struct key_type *type,
+-						 const union key_payload *payload,
+-						 struct key *trusted);
+-
+-extern int query_asymmetric_key(const struct kernel_pkey_params *,
+-				struct kernel_pkey_query *);
+-
+-extern int encrypt_blob(struct kernel_pkey_params *, const void *, void *);
+-extern int decrypt_blob(struct kernel_pkey_params *, const void *, void *);
+-extern int create_signature(struct kernel_pkey_params *, const void *, void *);
+-extern int verify_signature(const struct key *,
+-			    const struct public_key_signature *);
+-
+ int public_key_verify_signature(const struct public_key *pkey,
+ 				const struct public_key_signature *sig);
+ 
-- 
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe backports" in

  parent reply	other threads:[~2018-12-02 11:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-02 11:52 [PATCH 00/12] backports: Multiple fixes for kernel 4.20 Hauke Mehrtens
2018-12-02 11:52 ` [PATCH 01/12] backports: Refresh patches on kernel 4.20-rc4 Hauke Mehrtens
2018-12-02 11:52 ` [PATCH 02/12] backports: Add page_ref_count() and page_ref_sub_and_test() Hauke Mehrtens
2018-12-02 11:52 ` [PATCH 03/12] backports: Add page_frag_alloc() and __page_frag_cache_drain() Hauke Mehrtens
2018-12-02 11:52 ` [PATCH 04/12] backports: Add missing include for mt76 Hauke Mehrtens
2018-12-02 11:52 ` [PATCH 05/12] backports: Add device_get_mac_address() Hauke Mehrtens
2018-12-02 11:52 ` [PATCH 06/12] backports: Remove BPAUTO_CRYPTO_SKCIPHER Hauke Mehrtens
2018-12-02 11:52 ` [PATCH 07/12] backports: Fix pci_alloc_irq_vectors() backport Hauke Mehrtens
2018-12-02 11:52 ` [PATCH 08/12] backports: Revert "dependencies: Make WIL6210 depend on kernel >= 4.8" Hauke Mehrtens
2018-12-02 11:52 ` [PATCH 09/12] backports: Make TI WLCORE depend on kernel >= 4.2 Hauke Mehrtens
2018-12-02 11:52 ` Hauke Mehrtens [this message]
2018-12-02 11:52 ` [PATCH 11/12] backports: Remove unused default configurations Hauke Mehrtens
2018-12-02 11:52 ` [PATCH 12/12] backports: Update wifi default configuration Hauke Mehrtens
2018-12-07 20:01 ` [PATCH 00/12] backports: Multiple fixes for kernel 4.20 Hauke Mehrtens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181202115226.3594-11-hauke@hauke-m.de \
    --to=hauke@hauke-m.de \
    --cc=backports@vger.kernel.org \
    --cc=johannes@sipsolutions.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.