
Untitled
By: a guest on
Apr 28th, 2012 | syntax:
None | size: 0.89 KB | hits: 24 | expires: Never
OpenSSL CMS_final returns NULL
flags |= CMS_PARTIAL;
cms = CMS_encrypt(encerts, in, cipher, flags);
if (!cms)
assert(false);
if (!(flags & CMS_STREAM))
{
NSLog(@"In flags & CMS_STREAM");
if (!CMS_final(cms, in, NULL, flags)) {
BIO_printf(bio_err, "Error in CMS_finaln");
ERR_print_errors(bio_err);
assert(false);
}
}
2012-02-17 14:51:23.068 App[2306:f803] In flags & CMS_STREAM
Error in CMS_final
2898830084:error:0306E06C:lib(3):func(110):reason(108):bn_gcd.c:491:
2898830084:error:2E07D074:lib(46):func(125):reason(116):cms_env.c:841:
2898830084:error:2E07F041:lib(46):func(127):reason(65):cms_smime.c:714:
Assertion failed: (false), function -[FirstViewController encryptUsingCMS],
file /Users/myname/Documents/Development/
App/App/FirstViewController.m, line 211.