Changeset 39 in openpam for trunk/include/security/openpam.h


Ignore:
Timestamp:
Feb 7, 2002, 12:22:08 PM (14 years ago)
Author:
des
Message:

Introduce pam_v{info,error,prompt}().
Move OpenPAM API extensions into <security/openpam.h> to avoid
namespace pollution for apps or modules that do not use them.

Sponsored by: DARPA, NAI Labs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/security/openpam.h

    r32 r39  
    3737#ifndef _SECURITY_OPENPAM_H_INCLUDED
    3838#define _SECURITY_OPENPAM_H_INCLUDED
     39
     40/*
     41 * Annoying but necessary header pollution
     42 */
     43#include <stdarg.h>
     44
     45/*
     46 * API extensions
     47 */
     48int
     49pam_error(pam_handle_t *_pamh,
     50        const char *_fmt,
     51        ...);
     52
     53int
     54pam_get_authtok(pam_handle_t *_pamh,
     55        const char **_authtok,
     56        const char *_prompt);
     57
     58int
     59pam_info(pam_handle_t *_pamh,
     60        const char *_fmt,
     61        ...);
     62
     63int
     64pam_prompt(pam_handle_t *_pamh,
     65        int _style,
     66        char **_resp,
     67        const char *_fmt,
     68        ...);
     69
     70int
     71pam_setenv(pam_handle_t *_pamh,
     72        const char *_name,
     73        const char *_value,
     74        int _overwrite);
     75
     76int
     77pam_vinfo(pam_handle_t *_pamh,
     78        const char *_fmt,
     79        va_list _ap);
     80
     81int
     82pam_verror(pam_handle_t *_pamh,
     83        const char *_fmt,
     84        va_list _ap);
     85
     86int
     87pam_vprompt(pam_handle_t *_pamh,
     88        int _style,
     89        char **_resp,
     90        const char *_fmt,
     91        va_list _ap);
    3992
    4093/*
Note: See TracChangeset for help on using the changeset viewer.