tls-crypto: Add method to update application traffic keys

This commit is contained in:
Tobias Brunner
2021-02-12 11:45:44 +01:00
parent b51c1d468e
commit 1466d4da25
2 changed files with 53 additions and 40 deletions
+8
View File
@@ -574,6 +574,14 @@ struct tls_crypto_t {
*/
bool (*derive_app_keys)(tls_crypto_t *this);
/**
* Update the application keys.
*
* @param inbound whether to update the in- or outbound keys
* @return TRUE if secret derived successfully
*/
bool (*update_app_keys)(tls_crypto_t *this, bool inbound);
/**
* Try to resume a TLS session, derive key material.
*