tls-crypto: Rename methods to calculate finished message

Instead of the version number use "legacy" for the one for earlier TLS
versions.
This commit is contained in:
Tobias Brunner
2021-02-12 11:45:44 +01:00
parent f116a4823f
commit 2e1c0a2776
4 changed files with 17 additions and 14 deletions
+4 -3
View File
@@ -525,7 +525,8 @@ struct tls_crypto_t {
* @param out buffer to write finished data to
* @return TRUE if calculation successful
*/
bool (*calculate_finished)(tls_crypto_t *this, char *label, char out[12]);
bool (*calculate_finished_legacy)(tls_crypto_t *this, char *label,
char out[12]);
/**
* Calculate the data of a TLS finished message.
@@ -533,8 +534,8 @@ struct tls_crypto_t {
* @param out buffer to write finished data to
* @return TRUE if calculation successful
*/
bool (*calculate_finished_tls13)(tls_crypto_t *this, bool is_server,
chunk_t *out);
bool (*calculate_finished)(tls_crypto_t *this, bool is_server,
chunk_t *out);
/**
* Derive the master secret, MAC and encryption keys.