tls-crypto: Add method to hash handshake data and use result as initial transcript
This is used for HelloRetryRequest.
This commit is contained in:
@@ -474,6 +474,14 @@ struct tls_crypto_t {
|
||||
void (*append_handshake)(tls_crypto_t *this,
|
||||
tls_handshake_type_t type, chunk_t data);
|
||||
|
||||
/**
|
||||
* Hash the stored handshake data and store it. It is optionally returned
|
||||
* so it could be sent in a cookie extension.
|
||||
*
|
||||
* @param hash optionally returned hash (allocated)
|
||||
*/
|
||||
bool (*hash_handshake)(tls_crypto_t *this, chunk_t *hash);
|
||||
|
||||
/**
|
||||
* Sign a blob of data, append signature to writer.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user