PKCS7_type_is_other - determine content type of PKCS#7 envelopedData structure

#include <openssl/pkcs7.h>
int PKCS7_type_is_other(PKCS7 *p7);

PKCS7_type_is_other() returns the whether the content type of a PKCS#7 envelopedData structure is one of the following content types:

NID_pkcs7_data NID_pkcs7_signed NID_pkcs7_enveloped NID_pkcs7_signedAndEnveloped NID_pkcs7_digest NID_pkcs7_encrypted

PKCS7_type_is_other() returns either 0 if the content type is matched or 1 otherwise.

PKCS7_type_is_data(3), PKCS7_get_octet_string(3)

Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (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

2023-09-20 3.1.3