Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 28th, 2012  |  syntax: None  |  size: 0.89 KB  |  hits: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. OpenSSL CMS_final returns NULL
  2. flags |= CMS_PARTIAL;
  3.     cms = CMS_encrypt(encerts, in, cipher, flags);
  4.     if (!cms)
  5.         assert(false);    
  6.  
  7.     if (!(flags & CMS_STREAM))
  8.     {
  9.         NSLog(@"In flags & CMS_STREAM");
  10.         if (!CMS_final(cms, in, NULL, flags)) {
  11.             BIO_printf(bio_err, "Error in CMS_finaln");
  12.             ERR_print_errors(bio_err);
  13.  
  14.             assert(false);
  15.         }
  16.     }
  17.        
  18. 2012-02-17 14:51:23.068 App[2306:f803] In flags & CMS_STREAM
  19.     Error in CMS_final
  20.     2898830084:error:0306E06C:lib(3):func(110):reason(108):bn_gcd.c:491:
  21.     2898830084:error:2E07D074:lib(46):func(125):reason(116):cms_env.c:841:
  22.     2898830084:error:2E07F041:lib(46):func(127):reason(65):cms_smime.c:714:
  23.     Assertion failed: (false), function -[FirstViewController encryptUsingCMS],
  24.        file /Users/myname/Documents/Development/
  25.        App/App/FirstViewController.m, line 211.