OSSL_CMP_HDR...TRANSACTIONID(3SSL)

πŸ’– OSSL_CMP_HDR...TRANSACTIONID πŸ’–

okay bestie, welcome to the 3SSL girlies' corner of the OpenSSL manual, aka the page literally titled OSSL_CMP_HDR...TRANSACTIONID. No cap, 3SSL is just our little section badge πŸŽ€ and OpenSSL is, well, OpenSSL. Today's vibe: poking at CMP message headers. It's giving niche but iconic.


✨ NAME ✨

OSSL_CMP_HDR_get0_transactionID, OSSL_CMP_HDR_get0_recipNonce, OSSL_CMP_HDR_get0_geninfo_ITAVs β€” the lil functions that do stuff with CMP message headers 🫢


🌸 SYNOPSIS 🌸

#include <openssl/cmp.h>

ASN1_OCTET_STRING *OSSL_CMP_HDR_get0_transactionID(const
                                                   OSSL_CMP_PKIHEADER *hdr);
ASN1_OCTET_STRING *OSSL_CMP_HDR_get0_recipNonce(const
                                                OSSL_CMP_PKIHEADER *hdr);
STACK_OF(OSSL_CMP_ITAV)
    *OSSL_CMP_HDR_get0_geninfo_ITAVs(const OSSL_CMP_PKIHEADER *hdr);

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, three lil getters. all of them take a PKIHeader and hand you back a pointer into it. that's the whole plot πŸ’…

  • OSSL_CMP_HDR_get0_transactionID β€” gives you the transaction ID of the PKIHeader you passed in.
  • OSSL_CMP_HDR_get0_recipNonce β€” gives you the recipient nonce of the PKIHeader you passed in.
  • OSSL_CMP_HDR_get0_geninfo_ITAVs() β€” gives you the list of ITAVs sitting in the generalInfo field of the PKIHeader you passed in.

🧚 NOTES 🧚

CMP is defined in RFC 9810. that's the lore ✨


πŸ‘‘ RETURN VALUES πŸ‘‘

every function here returns the intended pointer value, exactly like described up there ↑, or NULL if the respective entry does not exist and on error. that's it, that's the whole deal. NULL = no vibe, no entry, or something went wrong 😭


⭐ HISTORY ⭐

  • The OpenSSL CMP support was added in OpenSSL 3.0.
  • OSSL_CMP_HDR_get0_geninfo_ITAVs() was added in OpenSSL 3.3. (she's the new girl and she ate πŸ’…)

Copyright 2007-2019 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.


and that's the page bestie, no notes 🀌 this was OpenSSL 4.0.3, dated 2026-09-29, and yes the manual name really is OSSL_CMP_HDR...TRANSACTIONID(3SSL) β€” the ellipsis is doing main character energy fr fr. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from