aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/sessions_sql
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-23 18:29:16 +0200
committerSimon Warta <[email protected]>2015-06-23 18:49:20 +0200
commite4cfc6684df02e1c1c2b583c764514cfc08e9c39 (patch)
treee8bc73070ddb9cb38594e114e28f4fa1129545f8 /src/lib/tls/sessions_sql
parentfcb249320e9529c772fde21195659cc81cb57c73 (diff)
lib/tls: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/tls/sessions_sql')
-rw-r--r--src/lib/tls/sessions_sql/tls_session_manager_sql.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/tls/sessions_sql/tls_session_manager_sql.cpp b/src/lib/tls/sessions_sql/tls_session_manager_sql.cpp
index c67dc7997..508f8ff2f 100644
--- a/src/lib/tls/sessions_sql/tls_session_manager_sql.cpp
+++ b/src/lib/tls/sessions_sql/tls_session_manager_sql.cpp
@@ -102,7 +102,7 @@ Session_Manager_SQL::Session_Manager_SQL(std::shared_ptr<SQL_Database> db,
const size_t iterations = 256 * 1024;
size_t check_val = 0;
- m_session_key = derive_key(passphrase, &salt[0], salt.size(),
+ m_session_key = derive_key(passphrase, salt.data(), salt.size(),
iterations, check_val);
auto stmt = m_db->new_statement("insert into tls_sessions_metadata values(?1, ?2, ?3)");