pamtest_conv_data(3)

πŸ“¦ version 1.1.8, in arch rolling

πŸ’… NAME πŸ’…

pamtest_conv_data β€” bestie, this is the struct you reach for when you're using run_pamtest, because that bad boy runs its own internal conversation function. It's giving "middleware for your PAM chat", no cap.


✨ SYNOPSIS ✨

#include <include/libpamtest.h>

πŸŽ€ Data Fields πŸŽ€

  • const char ** in_echo_off β€” when the conversation function gets handed PAM_PROMPT_ECHO_OFF, it pulls the auth token out of the in_echo_off array and keeps an index internally. Like, it's keeping track so you don't have to 🫢
  • const char ** in_echo_on β€” when the conversation function gets PAM_PROMPT_ECHO_ON, it reads the input from the in_echo_off array and keeps an index internally. (Yes, it says in_echo_off there too β€” I'm just repeating what the page says, don't come for me 😭)
  • char ** out_err β€” captures messages that come through PAM_ERROR_MSG πŸ’€
  • char ** out_info β€” captures messages that come through PAM_TEXT_INFO 🌸

πŸ¦‹ Detailed Description πŸ¦‹

Okay so, literally: this structure should be used when using run_pamtest, which uses an internal conversation function. That's the whole vibe. Main character struct energy ✨


πŸ‘‘ Field Documentation πŸ‘‘

char** pamtest_conv_data::out_err

Captures messages through PAM_ERROR_MSG. Heads up bestie β€” the test caller is responsible for allocating enough space in the array. That's on you, not on the library πŸ™ˆ

char** pamtest_conv_data::out_info

Captures messages through PAM_TEXT_INFO. And same deal: the test caller is responsible for allocating enough space in the array. Allocate responsibly, queen πŸ’…


⭐ Author ⭐

Generated automatically by Doxygen for pam_wrapper from the source code. Iconic behaviour, honestly.


🧚 Lowkey the whole point: fill the arrays, let the internal conversation function do its thing, and check out_err / out_info after. Just don't forget the allocation, fr fr.

That's the whole page, bestie β€” straight from the pam_wrapper source, pamtest_conv_data(3), brought to you by Doxygen and absolutely zero chill. Slay πŸ’–

πŸ“¦ where this page comes from