2015-01-22 03:40:55 +00:00
|
|
|
/*
|
2016-05-17 18:24:46 +00:00
|
|
|
* Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved.
|
2006-12-24 16:22:56 +00:00
|
|
|
*
|
2016-05-17 18:24:46 +00:00
|
|
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
2006-12-24 16:22:56 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <openssl/asn1.h>
|
|
|
|
#include <openssl/pkcs7.h>
|
|
|
|
#include <openssl/bio.h>
|
|
|
|
|
2016-03-17 16:53:11 +00:00
|
|
|
#if !defined(OPENSSL_SYS_VXWORKS)
|
2015-01-22 03:40:55 +00:00
|
|
|
# include <memory.h>
|
2008-01-03 22:43:04 +00:00
|
|
|
#endif
|
2006-12-24 16:22:56 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2008-03-12 21:14:28 +00:00
|
|
|
/* Streaming encode support for PKCS#7 */
|
2006-12-24 16:22:56 +00:00
|
|
|
|
2015-01-22 03:40:55 +00:00
|
|
|
BIO *BIO_new_PKCS7(BIO *out, PKCS7 *p7)
|
|
|
|
{
|
|
|
|
return BIO_new_NDEF(out, (ASN1_VALUE *)p7, ASN1_ITEM_rptr(PKCS7));
|
|
|
|
}
|