From 1fde024c07a0dc681a534a4197a18226737ebd19 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 3 Jul 2014 19:21:31 +0000 Subject: Get rid of the element of the publication-control protocol, it's a historical relic. Update example PDUs for publication and publication-control protocols. svn path=/branches/tk705/; revision=5883 --- schemas/relaxng/publication-control.rnc | 14 ++------ schemas/relaxng/publication-control.rng | 59 +-------------------------------- schemas/sql/pubd.sql | 8 ----- 3 files changed, 3 insertions(+), 78 deletions(-) (limited to 'schemas') diff --git a/schemas/relaxng/publication-control.rnc b/schemas/relaxng/publication-control.rnc index 520f6357..bf605640 100644 --- a/schemas/relaxng/publication-control.rnc +++ b/schemas/relaxng/publication-control.rnc @@ -30,10 +30,10 @@ start = element msg { } # PDUs allowed in a query -query_elt = ( config_query | client_query ) +query_elt = client_query # PDUs allowed in a reply -reply_elt = ( config_reply | client_reply | report_error_reply ) +reply_elt = ( client_reply | report_error_reply ) # Tag attributes for bulk operations tag = attribute tag { xsd:token {maxLength="1024" } } @@ -54,16 +54,6 @@ uri = attribute uri { uri_t } # hierarchy delimiter. object_handle = xsd:string { maxLength="255" pattern="[\-_A-Za-z0-9/]+" } -# element -# config_handle attribute, create, list, and destroy commands omitted deliberately, see code for details - -config_payload = (element bpki_crl { base64 }?) - -config_query |= element config { attribute action { "set" }, tag?, config_payload } -config_reply |= element config { attribute action { "set" }, tag? } -config_query |= element config { attribute action { "get" }, tag? } -config_reply |= element config { attribute action { "get" }, tag?, config_payload } - # element client_handle = attribute client_handle { object_handle } diff --git a/schemas/relaxng/publication-control.rng b/schemas/relaxng/publication-control.rng index 8759b493..cf624a3c 100644 --- a/schemas/relaxng/publication-control.rng +++ b/schemas/relaxng/publication-control.rng @@ -52,15 +52,11 @@ - - - - + - @@ -105,59 +101,6 @@ [\-_A-Za-z0-9/]+ - - - - - - - - - - - - set - - - - - - - - - - - set - - - - - - - - - - get - - - - - - - - - - get - - - - - - - diff --git a/schemas/sql/pubd.sql b/schemas/sql/pubd.sql index d867706b..87b899e3 100644 --- a/schemas/sql/pubd.sql +++ b/schemas/sql/pubd.sql @@ -19,17 +19,9 @@ -- SQL objects needed by pubd.py. --- The config table is weird because it only has one row. - DROP TABLE IF EXISTS client; DROP TABLE IF EXISTS config; -CREATE TABLE config ( - config_id SERIAL NOT NULL, - bpki_crl LONGBLOB, - PRIMARY KEY (config_id) -) ENGINE=InnoDB; - CREATE TABLE client ( client_id SERIAL NOT NULL, client_handle VARCHAR(255) NOT NULL, -- cgit v1.2.3