Loading crypto/pkcs7/pk7_doit.c +9 −4 Original line number Diff line number Diff line Loading @@ -256,11 +256,16 @@ BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio) if (PKCS7_is_detached(p7)) bio=BIO_new(BIO_s_null()); else { if (PKCS7_type_is_signed(p7)) { ASN1_OCTET_STRING *os; os = PKCS7_get_octet_string(p7->d.sign->contents); os = PKCS7_get_octet_string( p7->d.sign->contents); if (os && os->length > 0) bio = BIO_new_mem_buf(os->data, os->length); bio = BIO_new_mem_buf(os->data, os->length); } if(bio == NULL) { bio=BIO_new(BIO_s_mem()); Loading Loading
crypto/pkcs7/pk7_doit.c +9 −4 Original line number Diff line number Diff line Loading @@ -256,11 +256,16 @@ BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio) if (PKCS7_is_detached(p7)) bio=BIO_new(BIO_s_null()); else { if (PKCS7_type_is_signed(p7)) { ASN1_OCTET_STRING *os; os = PKCS7_get_octet_string(p7->d.sign->contents); os = PKCS7_get_octet_string( p7->d.sign->contents); if (os && os->length > 0) bio = BIO_new_mem_buf(os->data, os->length); bio = BIO_new_mem_buf(os->data, os->length); } if(bio == NULL) { bio=BIO_new(BIO_s_mem()); Loading