1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-02-20 21:54:16 +01:00

move includes around in an attempt to include less

This commit is contained in:
Klas Lindfors 2014-08-27 09:44:49 +02:00
parent 79612b5b29
commit 6dbcb903a5
3 changed files with 6 additions and 6 deletions

View File

@ -45,6 +45,8 @@
#include "util.h"
#include "drop_privs.h"
#include <ykclient.h>
#if HAVE_CR
/* for yubikey pbkdf2*/
#include <ykpbkdf2.h>

3
util.c
View File

@ -44,6 +44,9 @@
/* for yubikey_hex_decode and yubikey_hex_p */
#include <yubikey.h>
#include <ykpbkdf2.h>
#include <ykstatus.h>
#include <ykdef.h>
#endif /* HAVE_CR */
int

7
util.h
View File

@ -35,9 +35,7 @@
#define __PAM_YUBICO_UTIL_H_INCLUDED__
#include <stdio.h>
#include <ykclient.h>
#include <stdint.h>
#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 <ykcore.h>
#include <ykstatus.h>
#include <ykdef.h>
/* 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.