diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2020-08-28 10:05:15 -0700 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2020-09-10 11:02:23 +0100 |
commit | da30cd77e1dab21560286627eea9609e8a460ce9 (patch) | |
tree | c8103abec4c8d3cea5c8c16ffab81953c691f386 /crypto/cipherpriv.h | |
parent | 3eedf5cc9d45f94e2fd229f0a7aaca556a4ac734 (diff) |
crypto: Move cipher->driver init to qcrypto_*_cipher_ctx_new
The class vtable should be set by the class initializer.
This will also allow additional subclassing, reducing the
amount of indirection in the hierarchy.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'crypto/cipherpriv.h')
-rw-r--r-- | crypto/cipherpriv.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/crypto/cipherpriv.h b/crypto/cipherpriv.h index 437b109b5e..396527857d 100644 --- a/crypto/cipherpriv.h +++ b/crypto/cipherpriv.h @@ -47,8 +47,6 @@ qcrypto_afalg_cipher_ctx_new(QCryptoCipherAlgorithm alg, const uint8_t *key, size_t nkey, Error **errp); -extern const struct QCryptoCipherDriver qcrypto_cipher_afalg_driver; - #endif #endif |