diff mbox series

[10/12] backports: Remove unused code from backport-public_key.h

Message ID 20181202115226.3594-11-hauke@hauke-m.de (mailing list archive)
State Accepted
Headers show
Series backports: Multiple fixes for kernel 4.20 | expand

Commit Message

Hauke Mehrtens Dec. 2, 2018, 11:52 a.m. UTC
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 mbox series

Patch

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);
+