TLSRPT_ADD_POLICY_STRING(3)

✨ tlsrpt_add_policy_string β€” the manual page, bestie edition ✨

okay so you opened TLSRPT_ADD_POLICY_STRING(3) and honestly? slay. let's get into it πŸ’…


πŸ’– NAME πŸ’–

tlsrpt_add_policy_string β€” adds a policy string to describe the current policy πŸŽ€

like, it literally just drops a policy string in so the current policy gets described. that's the whole vibe. no cap. πŸ¦‹


🌸 SYNOPSIS 🌸

#include <tlsrpt.h>

int tlsrpt_add_policy_string(struct tlsrpt_dr_t* dr, const char* policy_string)

yes bestie, that's a struct tlsrpt_dr_t* pointer and a const char* β€” two little arguments and you're off. ✨


🫢 DESCRIPTION 🫢

so the tlsrpt_add_policy_string function adds a policy string to describe the current policy. that's it, that's the job. very main character of it honestly πŸ‘‘

and here's the part that's lowkey iconic: multiple policy strings can be added within one policy. so you're not limited to one β€” stack them up, collect them like stickers, the function does not gatekeep. 🌈


πŸ”₯ RETURN VALUE πŸ”₯

tlsrpt_add_policy_string returns 0 on success πŸ’– and a combined error code on failure 😭.

and the way you investigate that failure?? you take that combined error code and analyze it with the tlsrpt_strerror function. it's giving detective energy, it's giving iykyk πŸ”βœ¨


🌟 SEE ALSO 🌟

  • man:tlsrpt_strerror[3]
  • man:tlsrpt_error_code_is_internal[3]

go read those too, bestie, they're the supporting cast and they understood the assignment πŸŽ€


πŸ‘‘ AUTHOR πŸ‘‘

Boris Lohner πŸ’œ


that's the whole page, periodt. πŸ’…

and for the cute sign-off moment: this lil masterpiece lives under tlsrpt_add_policy_string, dated 2026-05-12, filed in the TLSRPT_ADD_POLICY_STRING(3) section of the manual. so iconic of it, fr fr πŸ¦‹βœ¨

πŸ“¦ where this page comes from