Merge pull request #75 from Bandie/master

LGTM
This commit is contained in:
Bandie 2018-10-30 22:29:24 +01:00 committed by GitHub
commit fd78f796c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,5 @@
[![Build Status](https://travis-ci.org/pampanic/pam_panic.svg?branch=master)](https://travis-ci.org/pampanic/pam_panic)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/001445f05a4e47bcad151c2f6a05a29c)](https://app.codacy.com/app/pampanic/pam_panic?utm_source=github.com&utm_medium=referral&utm_content=pampanic/pam_panic&utm_campaign=badger)
[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/pampanic/pam_panic.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/pampanic/pam_panic/context:cpp)
# pam\_panic

View File

@ -8,10 +8,12 @@ LICENSE : GNU-GPLv3
#ifndef PAM_PANIC_AUTHDEVICE_H
#define PAM_PANIC_AUTHDEVICE_H
#include "../config.h"
#include <stdint.h>
#include <security/pam_modules.h>
int authDevice(pam_handle_t *pamh, char *allowed, char *rejected, char *serious_dev, int8_t bSerious, int8_t bReboot, int8_t bPoweroff);
#endif

View File

@ -8,6 +8,7 @@ LICENSE : GNU-GPLv3
#ifndef PAM_PANIC_PASSWORD_H
#define PAM_PANIC_PASSWORD_H
#include "../config.h"
#include <stdint.h>
#include <security/pam_modules.h>
@ -19,4 +20,5 @@ LICENSE : GNU-GPLv3
int authPassword(pam_handle_t *pamh, char *serious_dev, int8_t bSerious, int8_t bReboot, int8_t bPoweroff);
#endif

View File

@ -8,9 +8,11 @@ LICENSE : GNU-GPLv3
#ifndef PAM_PANIC_REJECT_H
#define PAM_PANIC_REJECT_H
#include "../config.h"
#include <stdint.h>
int reject(char *serious_dev, int8_t bSerious, int8_t bReboot, int8_t bPoweroff);
#endif