diff options
author | Rob Austein <sra@hactrn.net> | 2008-05-21 00:30:38 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2008-05-21 00:30:38 +0000 |
commit | 5e87546f81d2fbd27f797a1ea97e70d71be39bd4 (patch) | |
tree | c62c5e23e9c47a3a8f5c6eef74bb184740aa1594 /rpkid/irbe-setup.py | |
parent | 8ba1be0fc4f98ec1b83152d2f9dffe39be118121 (diff) |
Move left-right "type" attribute to <msg/> element because fixing this
is easier than explaining why it was broken.
svn path=/rpkid/irbe-cli.py; revision=1804
Diffstat (limited to 'rpkid/irbe-setup.py')
-rw-r--r-- | rpkid/irbe-setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
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" |