diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2019-10-17 16:38:40 +0300 |
---|---|---|
committer | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-06-07 00:59:24 +0300 |
commit | e4bc91220bce4e7e421f99ad652fd8fae8525141 (patch) | |
tree | 18ba0c04bf8be2b96f033c4d462ea48943d6eba4 /lib/cipher_int.c | |
parent | 45413cef9d86d94d6c6932c35926f185758a679c (diff) | |
download | gnutls-e4bc91220bce4e7e421f99ad652fd8fae8525141.tar.gz |
cipher/mac: enhance handlers with setkey callback
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'lib/cipher_int.c')
-rw-r--r-- | lib/cipher_int.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/cipher_int.c b/lib/cipher_int.c index b5308aa629..058fe7a6f8 100644 --- a/lib/cipher_int.c +++ b/lib/cipher_int.c @@ -102,6 +102,7 @@ _gnutls_cipher_init(cipher_hd_st *handle, const cipher_entry_st *e, handle->tag = cc->tag; handle->setiv = cc->setiv; handle->getiv = cc->getiv; + handle->setkey = cc->setkey; /* if cc->init() returns GNUTLS_E_NEED_FALLBACK we * use the default ciphers */ @@ -128,6 +129,7 @@ _gnutls_cipher_init(cipher_hd_st *handle, const cipher_entry_st *e, handle->tag = _gnutls_cipher_ops.tag; handle->setiv = _gnutls_cipher_ops.setiv; handle->getiv = _gnutls_cipher_ops.getiv; + handle->setkey = _gnutls_cipher_ops.setkey; /* otherwise use generic cipher interface */ |