aboutsummaryrefslogtreecommitdiff
path: root/tests/mock_pam.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mock_pam.h')
-rw-r--r--tests/mock_pam.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/mock_pam.h b/tests/mock_pam.h
index c9c4f36..7fe0467 100644
--- a/tests/mock_pam.h
+++ b/tests/mock_pam.h
@@ -1,13 +1,16 @@
/*
+ * Copyright © 2012-2013 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>.
* Copyright © 2012 Canonical Ltd. All rights reserved.
*
- * Author(s): David Barth <david.barth@canonical.com>
+ * Author(s): Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
+ * David Barth <david.barth@canonical.com>
*
*/
#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>
@@ -18,7 +21,9 @@ typedef struct pam_handle pam_handle_t;
pam_handle_t *pam_handle_new (void);
pam_handle_t *pam_handle_empty_pswd_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