asn1_object_id_der(3)
π asn1_object_id_der(3) π
okay bestie, so this is a page from libtasn1 β the manual name is literally asn1_object_id_der(3) and it's giving extremely niche but very slay energy. it's an API function. let's get into it π«Ά
β¨ SYNOPSIS β¨
#include <libtasn1.h>
int asn1_object_id_der(const char * str, unsigned char * der, int *
der_len, unsigned flags);
like, it takes four things and returns an int. that's the whole vibe. π
π ARGUMENTS π
const char * strβ your object identifier, but make it numeric, dot format. so like, dots and numbers, bestie, not vibes.unsigned char * derβ the buffer where the returned encoding goes. and get this: it may beNULL. yes queen, optional. πint * der_lenβ starts out as the size ofder, and then it gets updated to hold the final size. it's a glow-up arc, honestly. β¨unsigned flagsβ must be zero. that's it. zero. no notes. don't be quirky with it. π
πΈ DESCRIPTION πΈ
Creates the DER encoding of the object identifier you handed it. that's the whole thing. it makes the encoding. DER. of the OID. iconic behaviour, truly. π
β RETURNS β
so it can come back as a few different things, and you need to know which:
ASN1_SUCCESSβ yay! the DER encoding was OK. we love this for you. πASN1_VALUE_NOT_VALIDβ thestryou passed is not a valid OID. tragic. check your dots. πASN1_MEM_ERRORβ thedervector isn't big enough. and listen, this one's actually useful: in this case,der_lenwill contain the length needed. so it's telling you exactly how much room to give it next time. a helpful king. π
π COPYRIGHT π
Copyright Β© 2006-2025 Free Software Foundation, Inc..
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.
π SEE ALSO π
the full documentation for libtasn1 is maintained as a Texinfo manual. if the info and libtasn1 programs are properly installed at your site, the command
info libtasn1
should give you access to the complete manual. as an alternative you may obtain the manual from:
https://www.gnu.org/software/libtasn1/manual/
ngl, flags must be zero. that's not a suggestion, bestie. that's the rule. π
and that's the page, fr fr π¦ this one's from libtasn1, version 4.21.0 β go forth and encode your object identifiers responsibly, you absolute main character. periodt. π β¨π
π¦ where this page comes from
- alpine 3.22: libtasn1-doc 4.21.0-r0 Β· LGPL-2.1-or-later
- alpine 3.23: libtasn1-doc 4.21.0-r0 Β· LGPL-2.1-or-later
- alpine 3.24: libtasn1-doc 4.21.0-r0 Β· LGPL-2.1-or-later
- arch rolling: libtasn1 4.21.0-1 Β· GPL-3.0-or-later AND LGPL-2.1-or-later AND GFDL-1.3-or-later
- fedora 43: libtasn1-devel 4.21.0-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: libtasn1-devel 4.21.0-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: libtasn1-devel 4.21.0-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: libtasn1-devel 4.21.0-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libtasn1-devel 4.21.0-160000.1.1 Β· GFDL-1.3-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libtasn1-devel 4.21.0-160000.1.1 Β· GFDL-1.3-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libtasn1-devel 4.21.0-160000.1.1 Β· GFDL-1.3-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: libtasn1-devel 4.21.0-160000.1.1 Β· GFDL-1.3-or-later AND LGPL-2.1-or-later
- ubuntu resolute: libtasn1-6-dev 4.21.0-2
- ubuntu stonking: libtasn1-6-dev 4.21.0-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms