X509_SIG_GET0(3ossl)

πŸ’– X509_SIG_GET0 πŸ’–

okay bestie, welcome to the <openssl/x509.h> corner of the OpenSSL manual β€” this is X509_SIG_GET0(3ossl), the page all about the DigestInfo functions. yes, those two little getters. they're tiny. they're iconic. let's go πŸŽ€


✨ NAME ✨

X509_SIG_get0, X509_SIG_getm β€” DigestInfo functions


✨ SYNOPSIS ✨

#include <openssl/x509.h>

void X509_SIG_get0(const X509_SIG *sig, const X509_ALGOR **palg,
                   const ASN1_OCTET_STRING **pdigest);
void X509_SIG_getm(X509_SIG *sig, X509_ALGOR **palg,
                   ASN1_OCTET_STRING **pdigest);

✨ DESCRIPTION ✨

so here's the tea, bestie πŸ“

  • X509_SIG_get0() β€” hands you back pointers to the algorithm identifier and the digest value sitting inside sig. that's it. that's the whole job. she's a simple girl and she slays at it πŸ’…
  • X509_SIG_getm() β€” literally the same thing as X509_SIG_get0(), except the pointers that come back are not constant, meaning you can actually modify them. like, for example, to initialise them. that's the only difference. get0 gives you read-only vibes, getm gives you main character energy πŸ‘‘
not me writing a whole manpage about two functions whose entire personality is "here are your pointers" 😭 but honestly? we love a low-drama API.

✨ RETURN VALUES ✨

X509_SIG_get0() and X509_SIG_getm() return no values. nothing. nada. void, fr fr. they hand everything back through the pointer arguments, so don't go looking for a return value that isn't there πŸ™ˆ


✨ SEE ALSO ✨


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>.


okay that's the whole page, you ate it, no crumbs 🫢 this was OpenSSL 3.5.9, dated 2026-09-29 β€” love you, bye, go initialise some pointers responsibly πŸ’œβœ¨

πŸ“¦ where this page comes from