summaryrefslogtreecommitdiff
path: root/src/pam_radius_auth.h
diff options
context:
space:
mode:
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>2014-08-06 20:20:18 -0400
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>2014-08-06 20:20:18 -0400
commit77fc6c702c8c8cd6cfec70fb8c8dff519f4ef265 (patch)
treefd5635f79fbbe5b33391869cffe06f7a59061ff5 /src/pam_radius_auth.h
parent6599d28d9df0bf0739c2c66468216f3a60127b1b (diff)
parent9a1ee796634504a6f26a08fb8731c1d032dba9f2 (diff)
downloadlibpam-radius-auth-77fc6c702c8c8cd6cfec70fb8c8dff519f4ef265.tar.gz
libpam-radius-auth-77fc6c702c8c8cd6cfec70fb8c8dff519f4ef265.zip
Merge pull request #8 from foolean/master
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;