Constify the msg field of struct pam_message, and realign.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@263 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
922d9cb144
commit
620f3bf045
|
@ -31,7 +31,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $P4: //depot/projects/openpam/include/security/pam_types.h#11 $
|
* $P4: //depot/projects/openpam/include/security/pam_types.h#12 $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _PAM_TYPES_H_INCLUDED
|
#ifndef _PAM_TYPES_H_INCLUDED
|
||||||
|
@ -47,22 +47,22 @@ extern "C" {
|
||||||
* XSSO 5.1.1
|
* XSSO 5.1.1
|
||||||
*/
|
*/
|
||||||
struct pam_message {
|
struct pam_message {
|
||||||
int msg_style;
|
int msg_style;
|
||||||
char *msg;
|
const char *msg;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct pam_response {
|
struct pam_response {
|
||||||
char *resp;
|
char *resp;
|
||||||
int resp_retcode;
|
int resp_retcode;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* XSSO 5.1.2
|
* XSSO 5.1.2
|
||||||
*/
|
*/
|
||||||
struct pam_conv {
|
struct pam_conv {
|
||||||
int (*conv)(int, const struct pam_message **,
|
int (*conv)(int, const struct pam_message **,
|
||||||
struct pam_response **, void *);
|
struct pam_response **, void *);
|
||||||
void *appdata_ptr;
|
void *appdata_ptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -75,9 +75,9 @@ typedef struct pam_handle pam_handle_t;
|
||||||
* Solaris 9
|
* Solaris 9
|
||||||
*/
|
*/
|
||||||
typedef struct pam_repository {
|
typedef struct pam_repository {
|
||||||
char *type;
|
char *type;
|
||||||
void *scope;
|
void *scope;
|
||||||
size_t scope_len;
|
size_t scope_len;
|
||||||
} pam_repository_t;
|
} pam_repository_t;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Reference in New Issue