~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to crypto/pkcs7/pk7_doit.c

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Martin
  • Date: 2004-12-16 18:41:29 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20041216184129-z7xjkul57mh1jiha
Tags: upstream-0.9.7e
ImportĀ upstreamĀ versionĀ 0.9.7e

Show diffs side-by-side

added added

removed removed

Lines of Context:
257
257
                        bio=BIO_new(BIO_s_null());
258
258
                else
259
259
                        {
260
 
                        ASN1_OCTET_STRING *os;
261
 
                        os = PKCS7_get_octet_string(p7->d.sign->contents);
262
 
                        if (os && os->length > 0)
263
 
                                bio = BIO_new_mem_buf(os->data, os->length);
 
260
                        if (PKCS7_type_is_signed(p7))
 
261
                                {
 
262
                                ASN1_OCTET_STRING *os;
 
263
                                os = PKCS7_get_octet_string(
 
264
                                                        p7->d.sign->contents);
 
265
                                if (os && os->length > 0)
 
266
                                        bio = BIO_new_mem_buf(os->data,
 
267
                                                                os->length);
 
268
                                }
264
269
                        if(bio == NULL)
265
270
                                {
266
271
                                bio=BIO_new(BIO_s_mem());