From 6dbcb903a5d169a6bbaf1d8833554632084b1400 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Wed, 27 Aug 2014 09:44:49 +0200 Subject: [PATCH] move includes around in an attempt to include less --- pam_yubico.c | 2 ++ util.c | 3 +++ util.h | 7 +------ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pam_yubico.c b/pam_yubico.c index dcbfeeb..ba1345e 100644 --- a/pam_yubico.c +++ b/pam_yubico.c @@ -45,6 +45,8 @@ #include "util.h" #include "drop_privs.h" +#include + #if HAVE_CR /* for yubikey pbkdf2*/ #include diff --git a/util.c b/util.c index efe3f86..92838bc 100644 --- a/util.c +++ b/util.c @@ -44,6 +44,9 @@ /* for yubikey_hex_decode and yubikey_hex_p */ #include #include + +#include +#include #endif /* HAVE_CR */ int diff --git a/util.h b/util.h index 4166e67..cc3d344 100644 --- a/util.h +++ b/util.h @@ -35,9 +35,7 @@ #define __PAM_YUBICO_UTIL_H_INCLUDED__ #include - -#include - +#include #if defined(DEBUG_PAM) # if defined(HAVE_SECURITY__PAM_MACROS_H) @@ -57,10 +55,7 @@ int get_user_cfgfile_path(const char *common_path, const char *filename, const char *username, char **fn); #if HAVE_CR - #include -#include -#include /* Challenges can be 0..63 or 64 bytes long, depending on YubiKey configuration. * We settle for 63 bytes to have something that works with all configurations.