From 2c749a18db7886b7c9931f2b98eac6f099d304d2 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 25 Oct 2015 22:25:40 +0000 Subject: 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 --- rpki/pubd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rpki/pubd.py') 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() -- cgit v1.2.3