aboutsummaryrefslogtreecommitdiff
path: root/rpki/publication.py
diff options
context:
space:
mode:
Diffstat (limited to 'rpki/publication.py')
-rw-r--r--rpki/publication.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpki/publication.py b/rpki/publication.py
index 5d9daf20..8970ff7a 100644
--- a/rpki/publication.py
+++ b/rpki/publication.py
@@ -39,8 +39,8 @@ logger = logging.getLogger(__name__)
class publication_namespace(object):
- xmlns = "http://www.hactrn.net/uris/rpki/publication-spec/"
- nsmap = { None : xmlns }
+ xmlns = rpki.relaxng.publication.xmlns
+ nsmap = rpki.relaxng.publication.nsmap
class base_publication_elt(rpki.xml_utils.base_elt, publication_namespace):
@@ -230,7 +230,7 @@ class msg(rpki.xml_utils.msg, publication_namespace):
## @var version
# Protocol version
- version = 3
+ version = int(rpki.relaxng.publication.version)
## @var pdus
# Dispatch table of PDUs for this protocol.
@@ -244,7 +244,7 @@ class sax_handler(rpki.xml_utils.sax_handler):
pdu = msg
name = "msg"
- version = "3"
+ version = rpki.relaxng.publication.version
class cms_msg(rpki.x509.XML_CMS_object):