diff options
author | Rob Austein <sra@hactrn.net> | 2015-10-25 22:25:40 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-10-25 22:25:40 +0000 |
commit | 2c749a18db7886b7c9931f2b98eac6f099d304d2 (patch) | |
tree | b4fb16f74a8e5ada8e84add05ef94d865c427383 /rpki/pubd.py | |
parent | 95ef1c6d040c015615be01bee36547faf8432791 (diff) |
Tweak binary field types to get SQLite3 working as a Django ORM
backend. Switch yamltest's default database configuration to sqlite3.
MySQL still has character set issues, which are almost certainly to do
with the communication channel rather than the database tables. It's
possible that one of the newer DB API drivers for MySQL fixes this,
might be worth trying one of them at some point (see the "MySQL notes"
discussion of MySQL DB API drivers in the Django documentation).
svn path=/branches/tk705/; revision=6149
Diffstat (limited to 'rpki/pubd.py')
-rw-r--r-- | rpki/pubd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpki/pubd.py b/rpki/pubd.py index b5d36199..f917c18d 100644 --- a/rpki/pubd.py +++ b/rpki/pubd.py @@ -184,10 +184,10 @@ class main(object): client.base_uri = q_pdu.get("base_uri") bpki_cert = q_pdu.find(rpki.publication_control.tag_bpki_cert) if bpki_cert is not None: - client.bpki_cert = bpki_cert.text.decode("base64") + client.bpki_cert = rpki.x509.X509(Base64 = bpki_cert.text) bpki_glue = q_pdu.find(rpki.publication_control.tag_bpki_glue) if bpki_glue is not None: - client.bpki_glue = bpki_glue.text.decode("base64") + client.bpki_glue = rpki.x509.X509(Base64 = bpki_glue.text) if q_pdu.get("clear_replay_protection") == "yes": client.last_cms_timestamp = None client.save() |