Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Adapted to remove Samba AES support
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
key->hmac_hnd = NULL;
}
+ if (key->cipher_hnd != NULL) {
+ gnutls_aead_cipher_deinit(key->cipher_hnd);
+ key->cipher_hnd = NULL;
+ }
+
return 0;
}
/* Forward declaration of GnuTLS typedefs */
struct hmac_hd_st;
typedef struct hmac_hd_st* gnutls_hmac_hd_t;
+struct api_aead_cipher_hd_st;
+typedef struct api_aead_cipher_hd_st *gnutls_aead_cipher_hd_t;
struct smb2_signing_key {
gnutls_hmac_hd_t hmac_hnd;
+ gnutls_aead_cipher_hd_t cipher_hnd;
DATA_BLOB blob;
};