diff options
author | lloyd <[email protected]> | 2012-03-22 18:41:39 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-03-22 18:41:39 +0000 |
commit | c670e02f82087945f2c96b7cf69177ba374b27fc (patch) | |
tree | b3cec42ca7917db3183b9d997fbacc5c793d1721 /src/tls/sessions_sqlite | |
parent | 4b3a653d7522365fcff3cda0afa40aac269e5767 (diff) | |
parent | 4004e38a00f6bf5743af68d47e44f7adf3872d2b (diff) |
propagate from branch 'net.randombit.botan.tls-state-machine' (head 6bcbae3d22e4d873a8e941d0325ad666482ac4da)
to branch 'net.randombit.botan.tls-session-ticket' (head 9048722b5d18b39cf21f8542942dab94a9bd4e6b)
Diffstat (limited to 'src/tls/sessions_sqlite')
-rw-r--r-- | src/tls/sessions_sqlite/tls_sqlite_sess_mgr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tls/sessions_sqlite/tls_sqlite_sess_mgr.cpp b/src/tls/sessions_sqlite/tls_sqlite_sess_mgr.cpp index b02dc95f6..3fea68a74 100644 --- a/src/tls/sessions_sqlite/tls_sqlite_sess_mgr.cpp +++ b/src/tls/sessions_sqlite/tls_sqlite_sess_mgr.cpp @@ -209,7 +209,8 @@ void Session_Manager_SQLite::remove_entry(const MemoryRegion<byte>& session_id) void Session_Manager_SQLite::save(const Session& session) { - sqlite3_statement stmt(m_db, "insert into " + m_table_name + " values(?1, ?2, ?3, ?4, ?5)"); + sqlite3_statement stmt(m_db, "insert or replace into " + m_table_name + + " values(?1, ?2, ?3, ?4, ?5)"); stmt.bind(1, hex_encode(session.session_id())); stmt.bind(2, session.start_time()); |