TLSPOOL_CONFIGVAR(3)
π TLSPOOL_CONFIGVAR β like, the library calls one, bestie
okay so this is tlspool_configvar(3) and it's literally about grabbing a config variable value out of the TLS Pool's config file. tiny function, big main character energy. let's go π
β¨ SYNOPSIS β¨
#include <tlspool/starttls.h>
char *tlspool_configvar (char *cfgfile, char *varname);
that's it. two args. you got this π«Ά
πΈ DESCRIPTION πΈ
okay so tlspool_configvar() fetches the value of a configuration file variable named varname from the configuration file for the TLS Pool. like, it goes and gets the thing for you π
now, where does it look for that config file? the way that this works is:
- the name of the configuration file can be provided in the cfgfile parameter, or
- if it's
NULL, then first the environment variableTLSPOOL_CONFIG_FILEis tried, and - failing to find that, it tries the compile-time setting
TLSPOOL_DEFAULT_CONFIG_PATH.
three-tier fallback situation, very demure, very mindful β¨
and ngl the returned string is a duplicate, so you must free it with a call to free(). that's not a suggestion, bestie, that's the whole vibe. leak it and it's giving π
β RETURN VALUE β
the value returned is NULL when the requested variable was not found β but also when the configuration file did not load at all π so like, NULL is doing double duty here, lowkey iconic but also kinda annoying.
the error output may hold further hints on the cause of problems, so check that if you're confused π¦
π AUTHOR π
written by Rick van Rein of OpenFortress.nl, for the ARPA2.net project. king behavior, honestly π
π REPORTING BUGS π
for any discussion, including about bugs, please use the mailing list found on http://lists.arpa2.org/mailman/listinfo/tls-pool β yes, bugs count as discussion, bring them to the group chat π§
also please read the software distribution's README, INSTALL and TODO files for information about the tlspool-daemon implementation status. fr fr, they're there for a reason πΈ
π COPYRIGHT π
Copyright Β© 2016 Rick van Rein, ARPA2.net.
ARPA2 is funded from InternetWide.org, which in turns receives donations from various funding sources with an interest in a private and secure Internet that gives users control over their online presence. this particular project has been sponsored in part by NCSC. so like, funded by people who actually care about your privacy, we love to see it π«Ά
π SEE ALSO π
the TLS Pool API is documented in the include file <tlspool/commands.h> and <tlspool/starttls.h> for C, and the tlspool.py module for Python π
online resources may be found on the project home page, http://tlspool.arpa2.net β go poke around, it's cute β
and that's the page, bestie π sign-off time: brought to you by ARPA2.net, dated August 2016, and yes the whole thing is TLSPOOL_CONFIGVAR(3) in case you forgot where you were π
β¨
π¦ where this page comes from
- nixos 26.05: tlspool 0.9.7
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms