aboutsummaryrefslogtreecommitdiff
path: root/src/pam-freerdp2.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-05 17:33:12 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-05 17:33:12 +0200
commit1db318b8f43edf2f88183934db39a0477484ef46 (patch)
treeb2f80bd146ba754c2255798e4e094240989a637f /src/pam-freerdp2.c
parente415405912a5f8eab5378311114b491930f22a5e (diff)
downloadlibpam-freerdp2-1db318b8f43edf2f88183934db39a0477484ef46.tar.gz
libpam-freerdp2-1db318b8f43edf2f88183934db39a0477484ef46.tar.bz2
libpam-freerdp2-1db318b8f43edf2f88183934db39a0477484ef46.zip
src/pam-freerdp2.c: Use PAM_FREERDP2_PROMPT_* macros for pam prompt messages.
Diffstat (limited to 'src/pam-freerdp2.c')
-rw-r--r--src/pam-freerdp2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pam-freerdp2.c b/src/pam-freerdp2.c
index 35d5cf4..3f4126b 100644
--- a/src/pam-freerdp2.c
+++ b/src/pam-freerdp2.c
@@ -90,20 +90,20 @@ get_item (pam_handle_t * pamh, int type)
switch (type) {
case PAM_USER:
- message.msg = "login:";
+ message.msg = PAM_FREERDP2_PROMPT_GUESTLOGIN;
break;
case PAM_RUSER:
- message.msg = "remote login:";
+ message.msg = PAM_FREERDP2_PROMPT_USER;
break;
case PAM_TYPE_RDPSERVER:
- message.msg = "remote host:";
+ message.msg = PAM_FREERDP2_PROMPT_HOST;
break;
case PAM_AUTHTOK:
- message.msg = "password:";
+ message.msg = PAM_FREERDP2_PROMPT_PASSWORD;
message.msg_style = PAM_PROMPT_ECHO_OFF;
break;
case PAM_TYPE_RDPDOMAIN:
- message.msg = "domain:";
+ message.msg = PAM_FREERDP2_PROMPT_DOMAIN;
break;
default:
return NULL;