summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-02-05 10:57:36 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-02-05 10:57:36 +0000
commit35bcdd437b531072dd587f50cf9e56084974746b (patch)
treeaad79d5019d567b85ad759d894f617ae6a6ef303 /src/include
parent03012f54b1bcd31e0b817fc0222a9a47709c4018 (diff)
downloadpamela-35bcdd437b531072dd587f50cf9e56084974746b.tar.xz
Fixes to headers and INSTALL doc
Diffstat (limited to 'src/include')
-rw-r--r--src/include/pamela/common.h5
-rw-r--r--src/include/pamela/pam.h9
-rw-r--r--src/include/pamela/pamela.h18
3 files changed, 23 insertions, 9 deletions
diff --git a/src/include/pamela/common.h b/src/include/pamela/common.h
index 5ae689e..cca90a4 100644
--- a/src/include/pamela/common.h
+++ b/src/include/pamela/common.h
@@ -3,6 +3,10 @@
#ifndef PAMELA_COMMON_H
#define PAMELA_COMMON_H
+ /*
+ Stuff used by the client library as well as pamelad.
+ */
+
#define PAMELA_BUFSIZE 4096
enum pamela_retcode_e
@@ -97,5 +101,6 @@ enum pamela_op_e
#define PAMELA_PAM_REINITIALIZE_CRED 0x0008U
#define PAMELA_PAM_REFRESH_CRED 0x0010U
#define PAMELA_PAM_CHANGE_EXPIRED_AUTHTOK 0x0020U
+#define PAMELA_PAM_DATA_SILENT 0x40000000U
#endif
diff --git a/src/include/pamela/pam.h b/src/include/pamela/pam.h
index aab7d7d..e3f0b86 100644
--- a/src/include/pamela/pam.h
+++ b/src/include/pamela/pam.h
@@ -3,9 +3,12 @@
#ifndef PAMELA_PAM_H
#define PAMELA_PAM_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
This is pamela's client-side PAM library.
-
*/
#include <skalibs/uint64.h>
@@ -158,4 +161,8 @@ extern int pam_putenv (pam_handle_t *, char const *) ;
extern char const *pam_getenv (pam_handle_t *, char const *) ;
extern char **pam_getenvlist (pam_handle_t *) ;
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/src/include/pamela/pamela.h b/src/include/pamela/pamela.h
index ca45124..ce5a971 100644
--- a/src/include/pamela/pamela.h
+++ b/src/include/pamela/pamela.h
@@ -3,9 +3,11 @@
#ifndef PAMELA_H
#define PAMELA_H
-#ifdef __cplusplus
-extern "C" {
-#endif
+ /*
+ Declarations for the client library.
+ This is the internal layer, that does not
+ depend on the PAM API.
+ */
#include <sys/types.h>
#include <stdint.h>
@@ -15,6 +17,11 @@ extern "C" {
#include <pamela/common.h>
+ /* Misc defs */
+
+#define PAMELA_BUFSIZE 4096
+
+
/* pam_fail_delay */
typedef void pamela_pam_delay_func_t (int, unsigned int, void *) ;
@@ -72,9 +79,4 @@ extern int pamela_set_item (pamela_t *, unsigned char, char const *) ;
extern int pamela_set_itemv (pamela_t *, unsigned char, struct iovec const *, unsigned int) ;
extern int pamela_op (pamela_t *, unsigned char, int) ;
-
-#ifdef __cplusplus
-}
-#endif
-
#endif