diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-05-05 17:18:22 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-05-05 17:20:34 +0200 |
commit | 99d168a532894cafd6648547c1ac30dff2a62c43 (patch) | |
tree | 3a859c58f59ce997a37606105226397d163aab82 /tests/mock_pam.h | |
parent | 589051f3ef91ab1bc3029de3952907dea81c1f88 (diff) | |
download | libpam-freerdp2-99d168a532894cafd6648547c1ac30dff2a62c43.tar.gz libpam-freerdp2-99d168a532894cafd6648547c1ac30dff2a62c43.tar.bz2 libpam-freerdp2-99d168a532894cafd6648547c1ac30dff2a62c43.zip |
unit tests: Fix build and re-enable them.
Diffstat (limited to 'tests/mock_pam.h')
-rw-r--r-- | tests/mock_pam.h | 11 |
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 |