File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -356,22 +356,18 @@ ossl_cmsci_get_signers(VALUE self)
356
356
{
357
357
CMS_ContentInfo * cms ;
358
358
STACK_OF (CMS_SignerInfo ) * sk ;
359
- CMS_SignerInfo * si ;
360
359
int num , i ;
361
360
VALUE ary ;
362
361
363
362
GetCMSContentInfo (self , cms );
364
363
if (!(sk = CMS_get0_SignerInfos (cms ))) {
365
- OSSL_Debug ("OpenSSL::CMS#get_signer_info == NULL!" );
366
364
return rb_ary_new ();
367
365
}
368
- if ((num = sk_CMS_SignerInfo_num (sk )) < 0 ) {
369
- ossl_raise (eCMSError , "Negative number of signers!" );
370
- }
366
+ num = sk_CMS_SignerInfo_num (sk );
371
367
ary = rb_ary_new2 (num );
372
368
for (i = 0 ; i < num ; i ++ ) {
373
- si = sk_CMS_SignerInfo_value (sk , i );
374
- rb_ary_push (ary , ossl_cmssi_new (si ));
369
+ CMS_SignerInfo * si = sk_CMS_SignerInfo_value (sk , i );
370
+ rb_ary_push (ary , ossl_cmssi_new (si ));
375
371
}
376
372
377
373
return ary ;
You can’t perform that action at this time.
0 commit comments