PKCS7_TYPE_IS_OTHER(3ossl)

πŸ“¦
version 15.1 Β· 3 versions
, in freebsd 15.1

πŸ’… 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_data
  • NID_pkcs7_signed
  • NID_pkcs7_enveloped
  • NID_pkcs7_signedAndEnveloped
  • NID_pkcs7_digest
  • NID_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:


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