Merge pull request #1 from squiffy/master

BSD and OS X support
This commit is contained in:
Victor van Poppelen
2015-01-31 16:17:56 -05:00
2 changed files with 17 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
#include <security/_pam_types.h>
#include <security/pam_types.h>
#include <security/pam_appl.h>
#include <stdlib.h>
#include <string.h>

View File

@@ -30,9 +30,25 @@ enum {
$ABORT = PAM_ABORT,
$AUTHTOK_EXPIRED = PAM_AUTHTOK_EXPIRED,
$MODULE_UNKNOWN = PAM_MODULE_UNKNOWN,
#if !defined(PAM_BAD_ITEM)
$BAD_ITEM = PAM_SYMBOL_ERR,
#else
$BAD_ITEM = PAM_BAD_ITEM,
#endif
#if !defined(PAM_CONV_AGAIN)
$CONV_AGAIN = PAM_SYMBOL_ERR,
#else
$CONV_AGAIN = PAM_CONV_AGAIN,
#endif
#if !defined(PAM_INCOMPLETE)
$INCOMPLETE = PAM_SYMBOL_ERR
#else
$INCOMPLETE = PAM_INCOMPLETE
#endif
};
enum {