diff options
author | René Meusel <[email protected]> | 2022-05-18 09:32:04 +0200 |
---|---|---|
committer | René Meusel <[email protected]> | 2022-05-18 10:01:01 +0200 |
commit | 3bedb5f3cb94ecc5607572b404c4a324f7acc2a7 (patch) | |
tree | f9bc7580ac098b1cb4ef0b5d284ab59b12ddeca8 /src/lib/tls/msg_server_hello.cpp | |
parent | 2fb7ba81b0304f0864a557e3f3a010f4c2ce08d3 (diff) |
Introduce TLS::Callbacks::tls_current_timestamp()
Diffstat (limited to 'src/lib/tls/msg_server_hello.cpp')
-rw-r--r-- | src/lib/tls/msg_server_hello.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/tls/msg_server_hello.cpp b/src/lib/tls/msg_server_hello.cpp index 5c5ad902f..b5f996f3d 100644 --- a/src/lib/tls/msg_server_hello.cpp +++ b/src/lib/tls/msg_server_hello.cpp @@ -32,10 +32,11 @@ const uint64_t DOWNGRADE_TLS12 = 0x444F574E47524401; std::vector<uint8_t> make_server_hello_random(RandomNumberGenerator& rng, Protocol_Version offered_version, + Callbacks& cb, const Policy& policy) { BOTAN_UNUSED(offered_version); - auto random = make_hello_random(rng, policy); + auto random = make_hello_random(rng, cb, policy); return random; } @@ -164,7 +165,7 @@ Server_Hello_12::Server_Hello_12(Handshake_IO& io, Server_Hello(std::make_unique<Server_Hello::Internal>( server_settings.protocol_version(), server_settings.session_id(), - make_server_hello_random(rng, server_settings.protocol_version(), policy), + make_server_hello_random(rng, server_settings.protocol_version(), cb, policy), server_settings.ciphersuite(), uint8_t(0))) { @@ -248,7 +249,7 @@ Server_Hello_12::Server_Hello_12(Handshake_IO& io, Server_Hello(std::make_unique<Server_Hello::Internal>( resumed_session.version(), client_hello.session_id(), - make_hello_random(rng, policy), + make_hello_random(rng, cb, policy), resumed_session.ciphersuite_code(), uint8_t(0))) { |