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