summaryrefslogtreecommitdiff
path: root/src/pam_radius_auth.h
diff options
context:
space:
mode:
authorBennett Samowich <bennett@foolean.org>2014-06-15 21:23:34 -0400
committerBennett Samowich <bennett@foolean.org>2014-06-17 17:00:11 -0400
commit9a1ee796634504a6f26a08fb8731c1d032dba9f2 (patch)
treefd5635f79fbbe5b33391869cffe06f7a59061ff5 /src/pam_radius_auth.h
parent6599d28d9df0bf0739c2c66468216f3a60127b1b (diff)
downloadlibpam-radius-auth-9a1ee796634504a6f26a08fb8731c1d032dba9f2.tar.gz
libpam-radius-auth-9a1ee796634504a6f26a08fb8731c1d032dba9f2.zip
Added 'prompt' option
Diffstat (limited to 'src/pam_radius_auth.h')
-rw-r--r--src/pam_radius_auth.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pam_radius_auth.h b/src/pam_radius_auth.h
index 5358764..b1ade51 100644
--- a/src/pam_radius_auth.h
+++ b/src/pam_radius_auth.h
@@ -39,6 +39,9 @@
#include "radius.h"
#include "md5.h"
+/* Defaults for the prompt option */
+#define MAXPROMPT 33 /* max prompt length, including '\0' */
+#define DEFAULT_PROMPT "Password" /* default prompt, without the ': ' */
/*************************************************************************
* Additional RADIUS definitions
@@ -69,6 +72,7 @@ typedef struct radius_conf_t {
int accounting_bug;
int sockfd;
int debug;
+ char prompt[MAXPROMPT];
} radius_conf_t;