aboutsummaryrefslogtreecommitdiff
path: root/ca/tests/testpoke.py
diff options
context:
space:
mode:
Diffstat (limited to 'ca/tests/testpoke.py')
-rw-r--r--ca/tests/testpoke.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ca/tests/testpoke.py b/ca/tests/testpoke.py
index c28ed397..68f967b9 100644
--- a/ca/tests/testpoke.py
+++ b/ca/tests/testpoke.py
@@ -74,9 +74,9 @@ def get_PEM_chain(name, cert = None):
if cert is not None:
chain.append(cert)
if name in yaml_data:
- chain.extend([rpki.x509.X509(PEM = x) for x in yaml_data[name]])
+ chain.extend(rpki.x509.X509(PEM = x) for x in yaml_data[name])
elif name + "-file" in yaml_data:
- chain.extend([rpki.x509.X509(PEM_file = x) for x in yaml_data[name + "-file"]])
+ chain.extend(rpki.x509.X509(PEM_file = x) for x in yaml_data[name + "-file"])
return chain
def query_up_down(q_pdu):
@@ -84,11 +84,11 @@ def query_up_down(q_pdu):
payload = q_pdu,
sender = yaml_data["sender-id"],
recipient = yaml_data["recipient-id"])
- q_der = rpki.up_down.cms_msg().wrap(q_msg, cms_key, cms_certs, cms_crl)
+ q_der = rpki.up_down.cms_msg_saxify().wrap(q_msg, cms_key, cms_certs, cms_crl)
def done(r_der):
global last_cms_timestamp
- r_cms = rpki.up_down.cms_msg(DER = r_der)
+ r_cms = rpki.up_down.cms_msg_saxify(DER = r_der)
r_msg = r_cms.unwrap([cms_ta] + cms_ca_certs)
last_cms_timestamp = r_cms.check_replay(last_cms_timestamp)
print r_cms.pretty_print_content()