1202375Srdivacky=pod
2202375Srdivacky
3202375Srdivacky=head1 NAME
4202375Srdivacky
5202375SrdivackyPKCS7_get_octet_string - return octet string from a PKCS#7 envelopedData structure
6202375Srdivacky
7202375Srdivacky=head1 SYNOPSIS
8202375Srdivacky
9202375Srdivacky #include <openssl/pkcs7.h>
10202375Srdivacky
11202375Srdivacky ASN1_OCTET_STRING *PKCS7_get_octet_string(PKCS7 *p7);
12202375Srdivacky
13202375Srdivacky=head1 DESCRIPTION
14202375Srdivacky
15202375SrdivackyPKCS7_get_octet_string() returns a pointer to an ASN1 octet string from a
16202375SrdivackyPKCS#7 envelopedData structure or B<NULL> if the structure cannot be parsed.
17218893Sdim
18202375Srdivacky=head1 NOTES
19202375Srdivacky
20202375SrdivackyAs the B<0> implies, PKCS7_get_octet_string() returns internal pointers which
21202375Srdivackyshould not be freed by the caller.
22223017Sdim
23223017Sdim=head1 RETURN VALUES
24223017Sdim
25223017SdimPKCS7_get_octet_string() returns an ASN1_OCTET_STRING pointer.
26223017Sdim
27223017Sdim=head1 SEE ALSO
28223017Sdim
29223017SdimL<PKCS7_type_is_data(3)>
30223017Sdim
31223017Sdim=head1 COPYRIGHT
32223017Sdim
33223017SdimCopyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved.
34223017Sdim
35223017SdimLicensed under the Apache License 2.0 (the "License").  You may not use
36223017Sdimthis file except in compliance with the License.  You can obtain a copy
37223017Sdimin the file LICENSE in the source distribution or at
38223017SdimL<https://www.openssl.org/source/license.html>.
39223017Sdim
40223017Sdim=cut
41223017Sdim