aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/tls_session_key.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-08 00:03:15 +0000
committerlloyd <[email protected]>2010-09-08 00:03:15 +0000
commit995277d11e900475aff1cc418021569968394590 (patch)
treeee36518274c423b970aa8a4dcc1cbee98cc8f1e1 /src/ssl/tls_session_key.cpp
parent02ed6ebc954683cd2a25a81b6e707ab481e41e26 (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.cpp4
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);