diff --git a/pam_aad.c b/pam_aad.c index 4aa81d2..a6f2010 100644 --- a/pam_aad.c +++ b/pam_aad.c @@ -9,7 +9,6 @@ #include #include #include -#include #include #include @@ -20,7 +19,6 @@ #define HOST "https://login.microsoftonline.com/" #define RESOURCE "https://graph.microsoft.com/" #define SUBJECT "Your one-time passcode for signing in via Azure Active Directory" -#define TTW 5 /* time to wait in seconds */ #define USER_AGENT "azure_authenticator_pam/1.0" #define USER_PROMPT "An email with a one-time passcode was sent to your email." \ "\nEnter the code at https://aka.ms/devicelogin, then press enter.\n" @@ -192,9 +190,6 @@ static void auth_bearer_request(struct ret_data *data, post_body = sdscat(post_body, "&grant_type=device_code"); for (;;) { - nanosleep((const struct timespec[]) { { - TTW, 0 } - }, NULL); json_data = curl(endpoint, post_body, NULL, debug); if (json_object_get(json_data, "access_token")) {