mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-01-19 07:52:23 +01:00
break out util.c into it's own temporary library
to make testing easier
This commit is contained in:
parent
e1262ef4f4
commit
79612b5b29
18
.gitignore
vendored
18
.gitignore
vendored
@ -27,17 +27,17 @@ m4/lt~obsolete.m4
|
||||
missing
|
||||
pam_yubico-*.tar.gz
|
||||
pam_yubico-*.tar.gz.sig
|
||||
pam_yubico.la
|
||||
pam_yubico_la-drop_privs.lo
|
||||
pam_yubico_la-pam_yubico.lo
|
||||
pam_yubico_la-util.lo
|
||||
test
|
||||
test.o
|
||||
ykpamcfg
|
||||
ykpamcfg-util.o
|
||||
ykpamcfg-ykpamcfg.o
|
||||
test-suite.log
|
||||
test.log
|
||||
test.trs
|
||||
pam_yubico.8
|
||||
ykpamcfg.1
|
||||
drop_privs.lo
|
||||
libpam_util.la
|
||||
pam_yubico.la
|
||||
pam_yubico.lo
|
||||
tests/test
|
||||
tests/test.o
|
||||
util.lo
|
||||
ykpamcfg
|
||||
ykpamcfg.o
|
||||
|
17
Makefile.am
17
Makefile.am
@ -31,16 +31,21 @@ SUBDIRS = . tests
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
AM_CFLAGS = $(WARN_CFLAGS)
|
||||
AM_CPPFLAGS = @YKPERS_CFLAGS@
|
||||
|
||||
libdir = $(PAMDIR)
|
||||
|
||||
lib_LTLIBRARIES = pam_yubico.la
|
||||
|
||||
pam_yubico_la_SOURCES = pam_yubico.c util.h util.c drop_privs.h drop_privs.c
|
||||
pam_yubico_la_SOURCES = pam_yubico.c drop_privs.h drop_privs.c
|
||||
# XXX add -Wl,-x too? PAM documentation suggests it.
|
||||
pam_yubico_la_LIBADD = @LTLIBYKCLIENT@ @LIBLDAP@ @YKPERS_LIBS@ @LTLIBYUBIKEY@ -lpam
|
||||
pam_yubico_la_LIBADD = @LTLIBYKCLIENT@ @LIBLDAP@ @YKPERS_LIBS@ -lpam
|
||||
pam_yubico_la_LIBADD += libpam_util.la
|
||||
pam_yubico_la_LDFLAGS = -module -avoid-version
|
||||
pam_yubico_la_CPPFLAGS = @YKPERS_CFLAGS@
|
||||
|
||||
noinst_LTLIBRARIES = libpam_util.la
|
||||
libpam_util_la_SOURCES = util.c util.h
|
||||
libpam_util_la_LIBADD = @LTLIBYUBIKEY@
|
||||
|
||||
DEFS = -DDEBUG_PAM -DPAM_DEBUG @DEFS@
|
||||
|
||||
@ -50,9 +55,9 @@ if YKPERS
|
||||
bin_PROGRAMS = ykpamcfg
|
||||
endif
|
||||
|
||||
ykpamcfg_SOURCES = ykpamcfg.c util.c
|
||||
ykpamcfg_LDADD = @LTLIBYKCLIENT@ @YKPERS_LIBS@ @LTLIBYUBIKEY@
|
||||
ykpamcfg_CPPFLAGS = @YKPERS_CFLAGS@
|
||||
ykpamcfg_SOURCES = ykpamcfg.c
|
||||
ykpamcfg_LDADD = @YKPERS_LIBS@
|
||||
ykpamcfg_LDADD += libpam_util.la
|
||||
|
||||
if YKPERS
|
||||
dist_man1_MANS = ykpamcfg.1
|
||||
|
@ -46,8 +46,7 @@
|
||||
#include "drop_privs.h"
|
||||
|
||||
#if HAVE_CR
|
||||
/* for yubikey_hex_decode and yubikey_hex_p */
|
||||
#include <yubikey.h>
|
||||
/* for yubikey pbkdf2*/
|
||||
#include <ykpbkdf2.h>
|
||||
#endif /* HAVE_CR */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user