[openssl-users] setting content types in CMS
Dr. Stephen Henson
steve at openssl.org
Thu Jul 9 13:53:35 UTC 2015
On Thu, Jul 09, 2015, Richard Welty wrote:
> how does one set a content type for a signed CMS object?
> i am creating it with a call to CMS_sign (with flag CMS_PARTIAL
> set among others), then when i call CMS_set1_eContentType
> it crashes.
That should work because that's what the cms utility does. Are you checking
that the return value from CMS_sign() is not NULL? What arguments are you
passing to CMS_set1_eContentType()?
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
More information about the openssl-users