diff --git a/absec_etc.c b/absec_etc.c index 2b9d9ed..06ff0e8 100644 --- a/absec_etc.c +++ b/absec_etc.c @@ -9,7 +9,7 @@ // Note : doc for using APR in code : https://people.apache.org/~rooneg/talks/portable-c-with-apr/apr.html // -#include "absec_auth.h" +#include "absec_authen.h" //#include "httpd.h" //#include "http_config.h" diff --git a/absec_pam.c b/absec_pam.c index ed3f2da..df76d01 100644 --- a/absec_pam.c +++ b/absec_pam.c @@ -1,6 +1,6 @@ -#include "absec_pam.h" +#include "absec_authen.h" #include #include diff --git a/compile.sh b/compile.sh index 0c67d8e..cabd554 100755 --- a/compile.sh +++ b/compile.sh @@ -4,7 +4,7 @@ echo "Cleaning projets" rm -fv *.o *.lo *.la *.slo echo "----------------" -echo "Compiling pam module" +echo "Compiling pam module (absec_pam)" #/home/jlcyr/apache2/bin/apxs -lpam -lpam_misc `mysql_config --cflags --libs` -c -i mod_absec.c #gcc -fPIC -c -lpam -lpam_misc -o absec_pam.o absec_pam.c #gcc absec_pam.c -lpam -lpam_misc -o absec_pam @@ -15,7 +15,7 @@ gcc absec_pam.c -lpam -lpam_misc -c #exit echo "----------------" -echo "Compiling authen test with pam" +echo "Compiling authen test with pam (test_authen -labsec_pam)" #/home/jlcyr/apache2/bin/apxs -lpam -lpam_misc `mysql_config --cflags --libs` -c -i mod_absec.c gcc test_authen.c absec_pam.o -lpam -lpam_misc -o test_authen #gcc -o test_pam -lpam -lpam_misc absec_pam.o test_pam.c @@ -25,7 +25,7 @@ echo "Running test" ./test_authen echo "----------------" -echo "Compiling etc module" +echo "Compiling etc module (absec_etc)" #/home/jlcyr/apache2/bin/apxs -lpam -lpam_misc `mysql_config --cflags --libs` -c -i mod_absec.c #gcc -fPIC -c -lpam -lpam_misc -o absec_pam.o absec_pam.c #gcc absec_pam.c -lpam -lpam_misc -o absec_pam @@ -33,7 +33,7 @@ gcc -I /usr/local/apache2/include -I /usr/include/apr-1.0 absec_etc.c -c echo "----------------" -echo "Compiling authen test with etc" +echo "Compiling authen test with etc (test_authen -labsec_etc)" #/home/jlcyr/apache2/bin/apxs -lpam -lpam_misc `mysql_config --cflags --libs` -c -i mod_absec.c gcc test_authen.c absec_etc.o -L/usr/lib/x86_64-linux-gnu -lapr-1 -lcrypt -o test_authen #gcc -o test_pam -lpam -lpam_misc absec_pam.o test_pam.c