mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-20 13:29:41 +00:00
Make S/MIME encrypt work again.
This commit is contained in:
parent
817089b66d
commit
a0cac0ff75
@ -257,10 +257,15 @@ BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio)
|
||||
bio=BIO_new(BIO_s_null());
|
||||
else
|
||||
{
|
||||
ASN1_OCTET_STRING *os;
|
||||
os = PKCS7_get_octet_string(p7->d.sign->contents);
|
||||
if (os && os->length > 0)
|
||||
bio = BIO_new_mem_buf(os->data, os->length);
|
||||
if (PKCS7_type_is_signed(p7))
|
||||
{
|
||||
ASN1_OCTET_STRING *os;
|
||||
os = PKCS7_get_octet_string(
|
||||
p7->d.sign->contents);
|
||||
if (os && os->length > 0)
|
||||
bio = BIO_new_mem_buf(os->data,
|
||||
os->length);
|
||||
}
|
||||
if(bio == NULL)
|
||||
{
|
||||
bio=BIO_new(BIO_s_mem());
|
||||
|
Loading…
x
Reference in New Issue
Block a user