aboutsummaryrefslogtreecommitdiff
path: root/tests/mock_pam.h
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-05 00:40:13 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-05 01:42:18 +0200
commita246de8bd1b37f1b9881b38036a736305e3e4052 (patch)
tree83df3c2ab9ee3d12c34424dddba0658a4b441b9a /tests/mock_pam.h
parent43e3871abcfa19cc8ccca9295d8a627ca19d96dc (diff)
downloadlibpam-x2go-a246de8bd1b37f1b9881b38036a736305e3e4052.tar.gz
libpam-x2go-a246de8bd1b37f1b9881b38036a736305e3e4052.tar.bz2
libpam-x2go-a246de8bd1b37f1b9881b38036a736305e3e4052.zip
unit tests: Fix them and reenable them.
Diffstat (limited to 'tests/mock_pam.h')
-rw-r--r--tests/mock_pam.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/mock_pam.h b/tests/mock_pam.h
index c335e49..01bea3f 100644
--- a/tests/mock_pam.h
+++ b/tests/mock_pam.h
@@ -10,6 +10,7 @@
#ifndef __MOCK_PAM_H__
#define __MOCK_PAM_H__
+#define LIBPAM_COMPILE
#include <security/pam_modules.h>
#include <security/pam_modutil.h>
#include <security/pam_appl.h>
@@ -19,7 +20,10 @@
typedef struct pam_handle pam_handle_t;
pam_handle_t *pam_handle_new (void);
-int pam_get_item (const pam_handle_t *pamh, int type, const void **value);
-int pam_set_item (pam_handle_t *pamh, int type, const void *value);
+
+int PAM_NONNULL((1))
+pam_get_item (const pam_handle_t *pamh, int type, const void **value);
+int PAM_NONNULL((1))
+pam_set_item (pam_handle_t *pamh, int type, const void *value);
#endif