diff options
Diffstat (limited to 'src/ssl/tls_session_key.cpp')
-rw-r--r-- | src/ssl/tls_session_key.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ssl/tls_session_key.cpp b/src/ssl/tls_session_key.cpp index 594b99e19..138d0a77c 100644 --- a/src/ssl/tls_session_key.cpp +++ b/src/ssl/tls_session_key.cpp @@ -84,7 +84,7 @@ SymmetricKey SessionKeys::ssl3_keygen(u32bit prf_gen, master_sec = prf.derive_key(48, pre_master, salt); - salt.destroy(); + salt.clear(); salt.append(server_random); salt.append(client_random); @@ -115,7 +115,7 @@ SymmetricKey SessionKeys::tls1_keygen(u32bit prf_gen, master_sec = prf.derive_key(48, pre_master, salt); - salt.destroy(); + salt.clear(); salt.append(KEY_GEN_MAGIC, sizeof(KEY_GEN_MAGIC)); salt.append(server_random); salt.append(client_random); |