PKCS7_TYPE_IS_OTHER(3ossl)
π PKCS7_TYPE_IS_OTHER π
okay so bestie, welcome to PKCS7_TYPE_IS_OTHER(3ossl) β yes that's the manual name, no we're not gonna say it three times fast. this is one of those tiny little OpenSSL functions that does exactly one (1) thing and honestly? we respect it for that. main character energy, minimal drama. β¨
πΈ SYNOPSIS πΈ
#include <openssl/pkcs7.h>
int PKCS7_type_is_other(PKCS7 *p7);
like, that's it. that's the whole vibe check. π
π¦ DESCRIPTION π¦
so PKCS7_type_is_other() takes your PKCS7 pointer β we're talking a PKCS#7 envelopedData structure here β and tells you whether its content type is one of these six iconic NIDs:
NID_pkcs7_dataNID_pkcs7_signedNID_pkcs7_envelopedNID_pkcs7_signedAndEnvelopedNID_pkcs7_digestNID_pkcs7_encrypted
that's the list. the whole guest list. if your content type is on it, the function knows. π
π₯ RETURN VALUES π₯
okay this is the part where you gotta pay attention because the vibes are inverted and i need you to not get played:
0β the content type was matched (it's one of the six up there)1β anything else, like, literally otherwise
ngl bestie, 0 for "yes it matched" is giving counterintuitive, so likeβ¦ read it twice. it's not a bug, it's just the API being quirky. π
π SEE ALSO π
go read your sisters, they're both slay:
PKCS7_type_is_data(3)PKCS7_get_octet_string(3)
π COPYRIGHT π
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 <https://www.openssl.org/source/license.html>.
so yeah. that's the whole page, fr fr. this was OpenSSL 3.5.6, dated 2026-04-07, and it's filed under PKCS7_TYPE_IS_OTHER(3ossl) β mwah, go off, little function. π«Άπβ
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms