OBJ_FIND_SIGID_ALGS(3)
π NAME π
okay so bestie, welcome to OBJ_FIND_SIGID_ALGS(3) straight out of the Library Functions Manual π β and today's main characters are OBJ_find_sigid_algs and OBJ_find_sigid_by_algs, aka your signature algorithm mappings β¨ iykyk.
π¦ SYNOPSIS π¦
library βlibcryptoβ
#include <openssl/objects.h>
int
OBJ_find_sigid_algs(int signature, int *pdigest, int *pencryption);
int
OBJ_find_sigid_by_algs(int *psignature, int digest, int encryption);
like, literally just include the header and you're in π
πΈ DESCRIPTION πΈ
π« OBJ_find_sigid_algs()
this one goes looking for the signature algorithm π and if it finds it:
- the matching digest algorithm gets dropped into
*pdigestβ unlesspdigestis aNULLpointer, in which case bestie, we simply don't π«Ά - the matching encryption algorithm gets dropped into
*pencryptionβ unlesspencryptionis aNULLpointer, same deal, no stress π
π« OBJ_find_sigid_by_algs()
this one runs the lookup the other way around, hunting for the pair (digest, encryption) π and if that pair is found, the associated signature algorithm goes into *psignature β unless psignature is a NULL pointer, in which case it's giving "we move" πβ¨
π RETURN VALUES π
OBJ_find_sigid_algs()β returns1if a definition of the signature algorithm is found, or0if a definition of the signature algorithm is not built into the library πOBJ_find_sigid_by_algs()β returns1if a signature algorithm using the specified digest and encryption algorithms is defined, or0if the definition of such an algorithm is not built into the library π
fr fr, 0 is not an error message situation, it just means that definition isn't baked in. vibe check passed, lookup not found π
β SEE ALSO β
go read these next, they're iconic π
π HISTORY π
these functions first appeared in OpenSSL 1.0.0 and have been available since OpenBSD 4.9 β so they've been serving looks for a minute π β¨
mwah π«Ά this lil page is from Debian, dated June 9, 2025, and it lives in section 3 (OBJ_FIND_SIGID_ALGS(3)) β periodt. π
π¦ where this page comes from
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms