asn1_check_version(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_check_version β€” the vibe check for your libtasn1 πŸ’–

okay bestie, so this one lives in the libtasn1 manual (section 3, the library-functions section, iykyk) and it's literally just a version vibe check. no cap.


✨ SYNOPSIS ✨

#include <libtasn1.h>

const char * asn1_check_version(const char * req_version);

🌸 ARGUMENTS 🌸

  • const char * req_version β€” the version number you're asking for, like the bare minimum you'll accept. or you can just pass NULL and skip the whole demanding-girl era.

πŸ¦‹ DESCRIPTION πŸ¦‹

so what this does is: it checks that the version of the library is at minimum the one you requested, and then it hands you back the version string. 🫢

if the condition is not satisfied? it returns NULL. no version string for you, sorry babe. πŸ’€

and if you pass a NULL in there β€” req_version being NULL, that is β€” then no check happens at all, and the version string is just... simply returned. chill. low effort. iconic.

peek at ASN1_VERSION for a req_version string that actually works here. that's the one you want. πŸ‘‘

⭐ RETURNS ⭐

  • the version string of the run-time library, or
  • NULL if the run-time library doesn't meet the required version number. 😭

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. and as an alternative, you may obtain the manual from:

https://www.gnu.org/software/libtasn1/manual/

and that's the whole thing, bestie. this page came from libtasn1 4.21.0, asn1_check_version(3), and it was served fresh out of the libtasn1 manual. slay, go forth and check those versions. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from