start cleanup test_authen with absec_pam and absec_etc

This commit is contained in:
2018-11-13 14:35:41 -05:00
parent 66f9fedca7
commit 0d45628f74
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
// Note : doc for using APR in code : https://people.apache.org/~rooneg/talks/portable-c-with-apr/apr.html // 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 "httpd.h"
//#include "http_config.h" //#include "http_config.h"
+1 -1
View File
@@ -1,6 +1,6 @@
#include "absec_pam.h" #include "absec_authen.h"
#include <security/pam_appl.h> #include <security/pam_appl.h>
#include <security/pam_misc.h> #include <security/pam_misc.h>
+4 -4
View File
@@ -4,7 +4,7 @@ echo "Cleaning projets"
rm -fv *.o *.lo *.la *.slo rm -fv *.o *.lo *.la *.slo
echo "----------------" 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 #/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 -fPIC -c -lpam -lpam_misc -o absec_pam.o absec_pam.c
#gcc absec_pam.c -lpam -lpam_misc -o absec_pam #gcc absec_pam.c -lpam -lpam_misc -o absec_pam
@@ -15,7 +15,7 @@ gcc absec_pam.c -lpam -lpam_misc -c
#exit #exit
echo "----------------" 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 #/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 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 #gcc -o test_pam -lpam -lpam_misc absec_pam.o test_pam.c
@@ -25,7 +25,7 @@ echo "Running test"
./test_authen ./test_authen
echo "----------------" 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 #/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 -fPIC -c -lpam -lpam_misc -o absec_pam.o absec_pam.c
#gcc absec_pam.c -lpam -lpam_misc -o absec_pam #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 "----------------"
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 #/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 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 #gcc -o test_pam -lpam -lpam_misc absec_pam.o test_pam.c