From: Sam Hartman Date: Wed, 25 Mar 2015 18:25:48 +0000 (-0400) Subject: Merge branch 'master' into debian X-Git-Tag: v1.5.1-debian~3 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=2524ec0ab9ab4f4e901a23b9f29f80cdcc1c2fe0;hp=ea714ae2a76a8fce5c835fa1f1a298fb159e3884;p=trust_router.git Merge branch 'master' into debian Version 1.5.1 --- diff --git a/configure.ac b/configure.ac index f7c9011..baeeb9c 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ AC_PREREQ(2.63) -AC_INIT([trust_router],[1.5], +AC_INIT([trust_router],[1.5.1], [bugs@project-moonshot.org]) AC_CONFIG_MACRO_DIR(m4) AC_CONFIG_AUX_DIR(build-aux) diff --git a/schema.sql b/schema.sql index 1e0a5f9..752fe2c 100644 --- a/schema.sql +++ b/schema.sql @@ -1,7 +1,8 @@ -create table if not exists psk_keys (keyid text primary key, key blob, client_dh_pub raw(20), key_expiration timestamp); +create table if not exists psk_keys_tab(keyid text primary key, key blob, client_dh_pub raw(20), key_expiration timestamp); create table if not exists authorizations( client_dh_pub raw(20), coi string, acceptor_realm string, hostname string, apc string); create index if not exists authorizations_dhpub on authorizations( client_dh_pub); -CREATE VIEW if not exists authorizations_keys as select keyid, authorizations.* from psk_keys join authorizations on psk_keys.client_dh_pub = authorizations.client_dh_pub and datetime(key_expiration) > datetime('now'); +create view if not exists psk_keys as select * from psk_keys_tab where datetime(key_expiration) > datetime('now'); +CREATE VIEW if not exists authorizations_keys as select keyid, authorizations.* from psk_keys join authorizations on psk_keys.client_dh_pub = authorizations.client_dh_pub; .quit diff --git a/trust_router.spec b/trust_router.spec index 66a98e0..69650bd 100644 --- a/trust_router.spec +++ b/trust_router.spec @@ -1,7 +1,7 @@ %global optflags %{optflags} -Wno-parentheses Name: trust_router -Version: 1.5 -Release: 3%{?dist} +Version: 1.5.1 +Release: 1%{?dist} Summary: Moonshot Trust Router Group: System Environment/Libraries @@ -92,11 +92,15 @@ exit 0 %post # Data directory -test -d /var/lib/trust_router ||mkdir /var/lib/trust_router -chown trustrouter:trustrouter /var/lib/trust_router -sqlite3