diff options
| author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2025-01-25 12:04:05 +0100 |
|---|---|---|
| committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2025-01-25 12:06:41 +0100 |
| commit | 96b2f26c68e621f8605b87da01030de02b90c18d (patch) | |
| tree | 34cdf5cf1a06e2b7628f8f98e94089ef9473e6ec /tests/mock_pam.c | |
| parent | 760c3278572a005da9f339526ea60f0d5afa3298 (diff) | |
| download | libpam-freerdp2-96b2f26c68e621f8605b87da01030de02b90c18d.tar.gz libpam-freerdp2-96b2f26c68e621f8605b87da01030de02b90c18d.tar.bz2 libpam-freerdp2-96b2f26c68e621f8605b87da01030de02b90c18d.zip | |
namespacing: Add FreeRDPv3 support and drop the FreeRDP version number from project name and project files.
Diffstat (limited to 'tests/mock_pam.c')
| -rw-r--r-- | tests/mock_pam.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/mock_pam.c b/tests/mock_pam.c index f32d95f..ca222ba 100644 --- a/tests/mock_pam.c +++ b/tests/mock_pam.c @@ -9,7 +9,7 @@ #include <string.h> #include "mock_pam.h" -#include "pam-freerdp2.h" +#include "pam-freerdp.h" struct pam_handle { void *item[PAM_NUM_ITEMS]; @@ -33,15 +33,15 @@ int fake_conv (int __attribute__((unused)) num_msg, response->resp_retcode = 0; - if (strcmp((*msg)->msg, PAM_FREERDP2_PROMPT_GUESTLOGIN) == 0) { + if (strcmp((*msg)->msg, PAM_FREERDP_PROMPT_GUESTLOGIN) == 0) { response->resp = strdup ("guest"); /* IMPORTANT: this needs to be in /etc/passwd */ - } else if (strcmp((*msg)->msg, PAM_FREERDP2_PROMPT_USER) == 0) { + } else if (strcmp((*msg)->msg, PAM_FREERDP_PROMPT_USER) == 0) { response->resp = strdup ("ruser"); - } else if (strcmp((*msg)->msg, PAM_FREERDP2_PROMPT_HOST) == 0) { + } else if (strcmp((*msg)->msg, PAM_FREERDP_PROMPT_HOST) == 0) { response->resp = strdup ("protocol://rhost/dummy"); - } else if (strcmp((*msg)->msg, PAM_FREERDP2_PROMPT_PASSWORD) == 0) { + } else if (strcmp((*msg)->msg, PAM_FREERDP_PROMPT_PASSWORD) == 0) { response->resp = strdup ("password"); - } else if (strcmp((*msg)->msg, PAM_FREERDP2_PROMPT_DOMAIN) == 0) { + } else if (strcmp((*msg)->msg, PAM_FREERDP_PROMPT_DOMAIN) == 0) { response->resp = strdup ("domain"); } else { free(response); @@ -66,15 +66,15 @@ int fake_conv_empty_password (int __attribute__((unused)) num_msg, response->resp_retcode = 0; - if (strcmp((*msg)->msg, PAM_FREERDP2_PROMPT_GUESTLOGIN) == 0) { + if (strcmp((*msg)->msg, PAM_FREERDP_PROMPT_GUESTLOGIN) == 0) { response->resp = strdup ("guest"); /* IMPORTANT: this needs to be in /etc/passwd */ - } else if (strcmp((*msg)->msg, PAM_FREERDP2_PROMPT_USER) == 0) { + } else if (strcmp((*msg)->msg, PAM_FREERDP_PROMPT_USER) == 0) { response->resp = strdup ("ruser"); - } else if (strcmp((*msg)->msg, PAM_FREERDP2_PROMPT_HOST) == 0) { + } else if (strcmp((*msg)->msg, PAM_FREERDP_PROMPT_HOST) == 0) { response->resp = strdup ("protocol://rhost/dummy"); - } else if (strcmp((*msg)->msg, PAM_FREERDP2_PROMPT_PASSWORD) == 0) { + } else if (strcmp((*msg)->msg, PAM_FREERDP_PROMPT_PASSWORD) == 0) { response->resp = strdup (""); - } else if (strcmp((*msg)->msg, PAM_FREERDP2_PROMPT_DOMAIN) == 0) { + } else if (strcmp((*msg)->msg, PAM_FREERDP_PROMPT_DOMAIN) == 0) { response->resp = strdup ("domain"); } else { free(response); |
