~ubuntu-branches/ubuntu/trusty/ruby1.9/trusty

« back to all changes in this revision

Viewing changes to ext/openssl/ossl_pkcs7.c

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2006-05-08 22:23:12 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060508222312-w2wqeaz030ifi59j
Tags: 1.9.0+20060423-3ubuntu1
* Resynchronized with Debian.
* Only change from Debian is the addition of
  debian/patches/903_sparc_fix_define.patch to fix illegal instructions
  at runtime on sparc. (change from 1.9.0+20050921-1ubuntu1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * $Id: ossl_pkcs7.c,v 1.8 2005/09/07 07:40:53 gotoyuzo Exp $
 
2
 * $Id: ossl_pkcs7.c,v 1.9 2006/02/03 09:15:38 matz Exp $
3
3
 * 'OpenSSL for Ruby' project
4
4
 * Copyright (C) 2001-2002  Michal Rokos <m.rokos@sh.cvut.cz>
5
5
 * All rights reserved.
583
583
 
584
584
    certs = pkcs7_get_certs_or_crls(self, 1);
585
585
    while((cert = sk_X509_pop(certs))) X509_free(cert);
586
 
    rb_iterate(rb_each, ary, ossl_pkcs7_set_certs_i, self);
 
586
    rb_block_call(ary, rb_intern("each"), 0, 0, ossl_pkcs7_set_certs_i, self);
587
587
 
588
588
    return ary;
589
589
}
623
623
 
624
624
    crls = pkcs7_get_certs_or_crls(self, 0);
625
625
    while((crl = sk_X509_CRL_pop(crls))) X509_CRL_free(crl);
626
 
    rb_iterate(rb_each, ary, ossl_pkcs7_set_crls_i, self);
 
626
    rb_block_call(ary, rb_intern("each"), 0, 0, ossl_pkcs7_set_crls_i, self);
627
627
 
628
628
    return ary;
629
629
}