1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

libcli:smb: Add gnutls_aead_cipher_hd_t to smb2_signing_key structure

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>
This commit is contained in:
Andreas Schneider 2019-03-14 09:26:04 +01:00 committed by Andreas Schneider
parent 1b384f378c
commit 37dc63e8af
2 changed files with 8 additions and 0 deletions

View File

@ -35,6 +35,11 @@ int smb2_signing_key_destructor(struct smb2_signing_key *key)
key->hmac_hnd = NULL;
}
if (key->cipher_hnd != NULL) {
gnutls_aead_cipher_deinit(key->cipher_hnd);
key->cipher_hnd = NULL;
}
return 0;
}

View File

@ -25,9 +25,12 @@ struct iovec;
/* 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;
};