Make C++-safe.
Sponsored by: DARPA, NAI Labs git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@42 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
709fbe9015
commit
32040ec571
5 changed files with 40 additions and 0 deletions
|
@ -42,6 +42,10 @@
|
|||
*/
|
||||
#include <stdarg.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* API extensions
|
||||
*/
|
||||
|
@ -199,4 +203,8 @@ DATA_SET(_openpam_modules, _pam_module)
|
|||
#define PAM_MODULE_ENTRY(name)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -40,6 +40,10 @@
|
|||
#include <security/pam_types.h>
|
||||
#include <security/pam_constants.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* XSSO 4.2.1, 6
|
||||
*/
|
||||
|
@ -169,4 +173,8 @@ pam_set_mapped_username(pam_handle_t *_pamh,
|
|||
char *_target_authn_domain);
|
||||
#endif /* 0 */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
#ifndef _PAM_CONSTANTS_H_INCLUDED
|
||||
#define _PAM_CONSTANTS_H_INCLUDED
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* XSSO 5.2
|
||||
*/
|
||||
|
@ -117,4 +121,8 @@ enum {
|
|||
PAM_AUTHTOK_PROMPT = 10 /* OpenPAM extension */
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -41,6 +41,10 @@
|
|||
#include <security/pam_constants.h>
|
||||
#include <security/openpam.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* XSSO 4.2.2, 6
|
||||
*/
|
||||
|
@ -137,4 +141,8 @@ pam_sm_set_mapped_username(pam_handle_t *_pamh,
|
|||
|
||||
#endif /* 0 */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
#ifndef _PAM_TYPES_H_INCLUDED
|
||||
#define _PAM_TYPES_H_INCLUDED
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* XSSO 5.1.1
|
||||
*/
|
||||
|
@ -65,4 +69,8 @@ struct pam_conv {
|
|||
struct pam_handle;
|
||||
typedef struct pam_handle pam_handle_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue