aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/crypto
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2020-01-02 20:04:39 -0800
committerHerbert Xu <herbert@gondor.apana.org.au>2020-01-09 11:30:58 +0800
commita24a1fd731274ebbca873000e2c7fbe8224ae4c8 (patch)
tree1169096d663feefc1dc6f686fe94cfeba753fae6 /include/crypto
parentcrypto: shash - convert shash_free_instance() to new style (diff)
downloadwireguard-linux-a24a1fd731274ebbca873000e2c7fbe8224ae4c8.tar.xz
wireguard-linux-a24a1fd731274ebbca873000e2c7fbe8224ae4c8.zip
crypto: algapi - remove crypto_template::{alloc,free}()
Now that all templates provide a ->create() method which creates an instance, installs a strongly-typed ->free() method directly to it, and registers it, the older ->alloc() and ->free() methods in 'struct crypto_template' are no longer used. Remove them. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/algapi.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h
index c16c50f8dac1..e115f9215ed5 100644
--- a/include/crypto/algapi.h
+++ b/include/crypto/algapi.h
@@ -63,8 +63,6 @@ struct crypto_template {
struct hlist_head instances;
struct module *module;
- struct crypto_instance *(*alloc)(struct rtattr **tb);
- void (*free)(struct crypto_instance *inst);
int (*create)(struct crypto_template *tmpl, struct rtattr **tb);
char name[CRYPTO_MAX_ALG_NAME];