From 5e87546f81d2fbd27f797a1ea97e70d71be39bd4 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 21 May 2008 00:30:38 +0000 Subject: Move left-right "type" attribute to element because fixing this is easier than explaining why it was broken. svn path=/rpkid/irbe-cli.py; revision=1804 --- rpkid/irbe-setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rpkid/irbe-setup.py') diff --git a/rpkid/irbe-setup.py b/rpkid/irbe-setup.py index 9531cda7..6518bb55 100644 --- a/rpkid/irbe-setup.py +++ b/rpkid/irbe-setup.py @@ -43,8 +43,8 @@ def call_rpkid(pdu): exception if anything bad happens, no fancy error handling. """ - pdu.type = "query" msg = rpki.left_right.msg((pdu,)) + msg.type = "query" cms = rpki.x509.left_right_pdu.wrap(msg, irbe_key, irbe_cert) der = rpki.https.client(client_key = irbe_key, client_cert = irbe_cert, @@ -53,7 +53,7 @@ def call_rpkid(pdu): msg = cms) msg = rpki.left_right.cms_msg.unwrap(der, (bpki_ta, rpkid_cert)) pdu = msg[0] - assert len(msg) == 1 and pdu.type == "reply" and not isinstance(pdu, rpki.left_right.report_error_elt) + assert len(msg) == 1 and msg.type == "reply" and not isinstance(pdu, rpki.left_right.report_error_elt) return pdu print "Create a self instance" -- cgit v1.2.3