shishi_asn1_to_der(3)
β¨ shishi_asn1_to_der β¨
okay bestie, welcome to the shishi manual page for shishi_asn1_to_der(3) β yes she's a section 3 function, yes she's iconic, let's get into it π
π NAME π
shishi_asn1_to_der β an API function. that's it, that's the whole name, she's serving function energy β¨
π¦ SYNOPSIS π¦
#include <shishi.h>
int shishi_asn1_to_der(Shishi * handle, Shishi_asn1 node, char ** der,
size_t * len);
like, that's the whole thing. four args, one int coming back at you. no cap. πΈ
π ARGUMENTS π
Shishi * handleβ the shishi handle, babes. you get one fromshishi_init(), and if you don't have one, what are you even doing here πShishi_asn1 nodeβ the actual ASN.1 data you want turned into DER. this is the main character of the operation, ngl.char ** derβ an output array that holds the DER encoding ofnode. she gets filled in for you, so make sure you're passing a pointer she can write into π«Άsize_t * lenβ an output variable that gets the length of thederoutput array. so you know exactly how much you got, periodt.
π DESCRIPTION π
so basically: this function extracts a newly allocated DER representation of the ASN.1 data you specified. that's the vibe. it hands you a fresh DER encoding of your node, allocated and ready to go β¨
not me emphasizing newly allocated β yes bestie, you're responsible for that memory, she's yours now π
β RETURN VALUE β
- returns
SHISHI_OKwhen everything slays β - returns
SHISHI_ASN1_ERRORwhen the DER encoding fails π β and the common reason for that is the ASN.1 is missing required values. so if you're getting errors, go check your fields, fr fr.
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the people π«Ά
- report bugs to <bug-shishi@gnu.org>
- GNU Shishi home page:
http://www.gnu.org/software/shishi/ - general help using GNU software:
http://www.gnu.org/gethelp/
π COPYRIGHT π
Copyright Β© 2002-2022 Simon Josefsson.
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.
(translation: she's free, just keep the receipts, bestie π)
πΈ SEE ALSO πΈ
the full documentation for shishi is maintained as a Texinfo manual. if the info and shishi programs are properly installed at your site, the command
info shishi
should give you access to the complete manual. iykyk πβ¨
and that's the whole page, angel π this beauty lives in the shishi manual, version 1.0.3, filed under shishi_asn1_to_der(3) β mwah, go encode something, you got this ππ¦β
π¦ where this page comes from
- debian bookworm: shishi-doc 1.0.3-1 Β· GPL-3.0-or-later
- debian trixie: shishi-doc 1.0.3-5 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: shishi-doc 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: shishi-doc 1.0.3-5
- ubuntu resolute: shishi-doc 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: shishi-doc 1.0.3-7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms