diff options
author | Rob Austein <sra@hactrn.net> | 2008-04-22 19:50:29 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2008-04-22 19:50:29 +0000 |
commit | 6d6c57a44146af102748e179c72595ef8a2bb8be (patch) | |
tree | f9e82fd048c6916d2dc388b88df3982e89d3649a /rpkid/test-pow-cms.py | |
parent | e60bef02fe78721c32f142a11c2023ca50838beb (diff) |
Add flags to CMS.verify(), add CMS.pprint().
svn path=/pow/POW-0.7/POW.c; revision=1692
Diffstat (limited to 'rpkid/test-pow-cms.py')
-rw-r--r-- | rpkid/test-pow-cms.py | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/rpkid/test-pow-cms.py b/rpkid/test-pow-cms.py index 12f73971..d9d62294 100644 --- a/rpkid/test-pow-cms.py +++ b/rpkid/test-pow-cms.py @@ -54,19 +54,6 @@ for args in ((ee, key, [ca], plaintext, oid), cms.sign(*args) if True: - f = open("test-pow-cms.der", "w") - f.write(cms.derWrite()) - f.close() - if True: - f = os.popen("dumpasn1 2>&1 -a test-pow-cms.der") - print "\n".join(x for x in f.read().splitlines() if x.startswith(" ")) - f.close() - if True: - os.unlink("test-pow-cms.der") + print cms.pprint() - if True: - f = os.popen("../openssl/openssl/apps/openssl cms -print -cmsout -inform DER", "w") - f.write(cms.derWrite()) - f.close() - cms.verify(store, [ee]) |