Header + linking(?)

This commit is contained in:
Bandie 2018-04-01 02:09:00 +02:00
parent b31cc5948b
commit 599dde34c1
Signed by: Bandie
GPG Key ID: C1E133BC65A822DD
8 changed files with 61 additions and 3 deletions

View File

@ -1,3 +1,11 @@
/*
FILENAME : pam_panic_authdevice.c
DESCRIPTION : Authenticates against the removable media
AUTHOR : Bandie
DATE : 2018-03-27T02:34:08+02:00
LICENSE : GNU-GPLv3
*/
int authDevice(pam_handle_t *pamh, char *allowed, char *rejected, char *serious_dev, int8_t bSerious, int8_t bReboot, int8_t bPoweroff){

View File

@ -1,3 +1,12 @@
/*
FILENAME : pam_panic_authdevice.h
AUTHOR : Bandie
DATE : 2018-03-27T02:34:08+02:00
LICENSE : GNU-GPLv3
*/
#define ASK "Please enter your secret key to decrypt the firewall and access the mainframe. "
#include "pam_panic_authdevice.c"

View File

@ -1,3 +1,11 @@
/*
FILENAME : pam_panic_password.c
DESCRIPTION : Reads password from PPASSFILE
AUTHOR : Bandie
DATE : 2018-03-27T02:34:08+02:00
LICENSE : GNU-GPLv3
*/
int readPassword(pam_handle_t *pamh, char pw[2][99]){

View File

@ -1,2 +1,11 @@
/*
FILENAME : pam_panic_password.h
AUTHOR : Bandie
DATE : 2018-03-27T02:34:08+02:00
LICENSE : GNU-GPLv3
*/
#include <crypt.h>
#include "pam_panic_password.c"

View File

@ -1,3 +1,11 @@
/*
FILENAME : pam_panic_reject.c
DESCRIPTION : Panic function
AUTHOR : Bandie
DATE : 2018-03-27T02:34:08+02:00
LICENSE : GNU-GPLv3
*/
int reject(char *serious_dev, int8_t bSerious, int8_t bReboot, int8_t bPoweroff){
if(bSerious){

View File

@ -1 +1,9 @@
/*
FILENAME : pam_panic_reject.h
AUTHOR : Bandie
DATE : 2018-03-27T02:34:08+02:00
LICENSE : GNU-GPLv3
*/
#include "pam_panic_reject.c"

View File

@ -1,6 +1,6 @@
LDFLAGS = -lc -lcrypt
CFLAGS = $(LDFLAGS) --std=gnu11 -Wall -O2 -DPPASSFILE=\"$(PPASSFILE)\"
LDFLAGS = -lm -lcrypt
CFLAGS = --std=gnu11 -Wall -O2 -DPPASSFILE=\"$(PPASSFILE)\"
all:
mkdir -p ../../build/
gcc $(CFLAGS) pam_panic_pw.c -o ../../build/pam_panic_pw
gcc $(CFLAGS) pam_panic_pw.c -o ../../build/pam_panic_pw $(LDFLAGS)

View File

@ -1,3 +1,11 @@
/*
FILENAME : pam_panic_pw.c
DESCRIPTION : Generates and saves password for pam_panic
AUTHOR : Bandie
DATE : 2018-03-27T02:34:08+02:00
LICENSE : GNU-GPLv3
*/