asn1_get_tag_der(3)

πŸ“¦
version 4.21.0 Β· 5 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu resolute, ubuntu stonking

✨ asn1_get_tag_der β€” the libtasn1 glow-up ✨

okay bestie, welcome to asn1_get_tag_der(3), a lil function from libtasn1 (that's the ASN.1 library, iykyk) and honestly? she's a whole vibe. let's get into it πŸ’…


πŸŽ€ NAME πŸŽ€

asn1_get_tag_der β€” an API function, no cap 🫢


🌸 SYNOPSIS 🌸

#include <libtasn1.h>

int asn1_get_tag_der(const unsigned char * der, int der_len, unsigned
char * cls, int * len, unsigned long * tag);

look at her. five args. iconic. πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • const unsigned char * der β€” the DER data you wanna decode, bestie. it's const so like, hands off, we're just reading πŸ’–
  • int der_len β€” how long that DER data is. the length. of the data. yes.
  • unsigned char * cls β€” output variable, she's gonna hold the decoded class ✨
  • int * len β€” output variable holding the length of the DER TAG data. (that's the TAG's length specifically, not the data's, don't get it twisted πŸ™ˆ)
  • unsigned long * tag β€” output variable with the decoded tag. may be NULL β€” she's optional, lowkey chill about it 🌈

πŸ’œ DESCRIPTION πŸ’œ

Decode the class and the TAG from the DER code. that's it. that's the whole thing. she decodes. she serves. periodt πŸŽ€


⭐ RETURNS ⭐

Returns ASN1_SUCCESS on success πŸŽ‰ or an error 😭. that's the deal.


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. (fr fr, go off, just keep the notice πŸ’–)


πŸ”₯ 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/

okay that's the whole page bestie, you're so welcome πŸ’…βœ¨ this was libtasn1 version 4.21.0, asn1_get_tag_der(3), and yes she ate πŸ“πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from