This commit is contained in:
Bandie 2018-03-29 14:20:32 +02:00
parent 9c0f4c5835
commit 721f63774c
Signed by: Bandie
GPG Key ID: C1E133BC65A822DD

View File

@ -27,6 +27,7 @@ LICENSE : GNU-GPLv3
PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char *argv[])
{
char *resp;
char *allowed_arg = malloc(128 * sizeof(char));
char *rejected_arg = malloc(128 * sizeof(char));
@ -43,7 +44,6 @@ PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, cons
// Regex for checking arguments
char *resp;
char *pattern = "^[A-Fa-f0-9]\\{8\\}\\-[A-Fa-f0-9]\\{4\\}\\-[A-Fa-f0-9]\\{4\\}\\-[A-Fa-f0-9]\\{4\\}\\-[A-Fa-f0-9]\\{12\\}$";
regex_t regex;