[openssl-users] Extract content of DER-encoded package by OID

2017-07-18 Thread Justin Mogannam
Hello, I have a signedData package that contains an encryptedKeyPackage (specifically OID 2.16.840.1.101.2.1.2.78.2, aka id-ct-KP-encryptedKeyPkg) that I want to extract from it. I am somewhat able to extract the sequence that contains this data via the OpenSSL command line: $ openssl asn1parse

Re: [openssl-users] Extract content of DER-encoded package by OID

2017-07-19 Thread Justin Mogannam
n -Original Message- From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf Of Dr. Stephen Henson Sent: Wednesday, July 19, 2017 4:26 AM To: openssl-users@openssl.org Subject: Re: [openssl-users] Extract content of DER-encoded package by OID On Tue, Jul 18, 2017, Ju

Re: [openssl-users] Extract content of DER-encoded package by OID

2017-07-20 Thread Justin Mogannam
t: Re: [openssl-users] Extract content of DER-encoded package by OID On Wed, Jul 19, 2017, Justin Mogannam wrote: > > 2) Once again, I'm looking in openssl/cms.h, and I could not find the > function prototype " d2i_CMS_ContentInfo". I even did a grep on the > whole dire

Re: [openssl-users] Extract content of DER-encoded package by OID

2017-07-21 Thread Justin Mogannam
g Subject: Re: [openssl-users] Extract content of DER-encoded package by OID On Thu, Jul 20, 2017, Justin Mogannam wrote: > Thanks for the tips thus far. One of the last issues I'm having is > actually declaring a CMS_ContentInfo structure. I just declare : > > CMS_ContentInfo cm