PKCS7_get_octet_string(3ssl)

PKCS7_get_octet_string3ssl

Return octet string from a pkcs#7 envelopeddata structure

Usage

 #include <openssl/pkcs7.h>
 ASN1_OCTET_STRING *PKCS7_get_octet_string(PKCS7 *p7);

Overview

PKCS7_get_octet_string() returns a pointer to an ASN1 octet string from a PKCS#7 envelopedData structure or NULL if the structure cannot be parsed.

Notes

As the 0 implies, PKCS7_get_octet_string() returns internal pointers which should not be freed by the caller.

Return values

PKCS7_get_octet_string() returns an ASN1_OCTET_STRING pointer.

Releases

3 releases since Debian 12 (Bookworm); the text changed 2 times.

  1. 12
  2. 13
  3. Arch

From openssl 3.6.5-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.