diff options
author | lloyd <[email protected]> | 2010-09-08 00:03:15 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-08 00:03:15 +0000 |
commit | 995277d11e900475aff1cc418021569968394590 (patch) | |
tree | ee36518274c423b970aa8a4dcc1cbee98cc8f1e1 /src/ssl/tls_session_key.cpp | |
parent | 02ed6ebc954683cd2a25a81b6e707ab481e41e26 (diff) |
Rename MemoryRegion::destroy to MemoryRegion::clear to match STL
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); |