From 91f3e0ae778c61ffae54a680ef357780f161e4b5 Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 17 Sep 2008 15:12:12 +0000 Subject: Added hmac cache of hmacs we have seen before (MEMORY TABLE) git-svn-id: https://code.elgg.org/elgg/trunk@2090 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/schema/mysql.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/schema/mysql.sql b/engine/schema/mysql.sql index b9dc633ae..b756ed427 100644 --- a/engine/schema/mysql.sql +++ b/engine/schema/mysql.sql @@ -264,8 +264,10 @@ CREATE TABLE `prefix_users_apisessions` ( -- HMAC Cache protecting against Replay attacks CREATE TABLE `prefix_hmac_cache` ( `hmac` varchar(255) NOT NULL, + `ts` int(11) NOT NULL, - PRIMARY KEY (`hmac`) + PRIMARY KEY (`hmac`), + KEY `ts` (`ts`) ) ENGINE=MEMORY; -- Datalists for things like db version -- cgit v1.2.3