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:
Dag-Erling Smørgrav 2002-02-09 15:43:36 +00:00
parent 709fbe9015
commit 32040ec571
5 changed files with 40 additions and 0 deletions

View File

@ -42,6 +42,10 @@
*/ */
#include <stdarg.h> #include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
/* /*
* API extensions * API extensions
*/ */
@ -199,4 +203,8 @@ DATA_SET(_openpam_modules, _pam_module)
#define PAM_MODULE_ENTRY(name) #define PAM_MODULE_ENTRY(name)
#endif #endif
#ifdef __cplusplus
}
#endif
#endif #endif

View File

@ -40,6 +40,10 @@
#include <security/pam_types.h> #include <security/pam_types.h>
#include <security/pam_constants.h> #include <security/pam_constants.h>
#ifdef __cplusplus
extern "C" {
#endif
/* /*
* XSSO 4.2.1, 6 * XSSO 4.2.1, 6
*/ */
@ -169,4 +173,8 @@ pam_set_mapped_username(pam_handle_t *_pamh,
char *_target_authn_domain); char *_target_authn_domain);
#endif /* 0 */ #endif /* 0 */
#ifdef __cplusplus
}
#endif
#endif #endif

View File

@ -37,6 +37,10 @@
#ifndef _PAM_CONSTANTS_H_INCLUDED #ifndef _PAM_CONSTANTS_H_INCLUDED
#define _PAM_CONSTANTS_H_INCLUDED #define _PAM_CONSTANTS_H_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
/* /*
* XSSO 5.2 * XSSO 5.2
*/ */
@ -117,4 +121,8 @@ enum {
PAM_AUTHTOK_PROMPT = 10 /* OpenPAM extension */ PAM_AUTHTOK_PROMPT = 10 /* OpenPAM extension */
}; };
#ifdef __cplusplus
}
#endif
#endif #endif

View File

@ -41,6 +41,10 @@
#include <security/pam_constants.h> #include <security/pam_constants.h>
#include <security/openpam.h> #include <security/openpam.h>
#ifdef __cplusplus
extern "C" {
#endif
/* /*
* XSSO 4.2.2, 6 * XSSO 4.2.2, 6
*/ */
@ -137,4 +141,8 @@ pam_sm_set_mapped_username(pam_handle_t *_pamh,
#endif /* 0 */ #endif /* 0 */
#ifdef __cplusplus
}
#endif
#endif #endif

View File

@ -37,6 +37,10 @@
#ifndef _PAM_TYPES_H_INCLUDED #ifndef _PAM_TYPES_H_INCLUDED
#define _PAM_TYPES_H_INCLUDED #define _PAM_TYPES_H_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
/* /*
* XSSO 5.1.1 * XSSO 5.1.1
*/ */
@ -65,4 +69,8 @@ struct pam_conv {
struct pam_handle; struct pam_handle;
typedef struct pam_handle pam_handle_t; typedef struct pam_handle pam_handle_t;
#ifdef __cplusplus
}
#endif
#endif #endif