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


Ignore:
Timestamp:
Apr 8, 2002, 1:42:13 PM (19 years ago)
Author:
Dag-Erling Smørgrav
Message:

Add openpam_{borrow,restore}_cred() (for temporarily switching to
user credentials) and openpam_free_data() (generic cleanup function
for pam_set_data() consumers)

Sponsored by: DARPA, NAI Labs

File:
1 edited

Legend:

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

    r104 r106  
    3232 * SUCH DAMAGE.
    3333 *
    34  * $P4: //depot/projects/openpam/include/security/openpam.h#14 $
     34 * $P4: //depot/projects/openpam/include/security/openpam.h#15 $
    3535 */
    3636
     
    4747#endif
    4848
     49struct passwd;
     50
    4951/*
    5052 * API extensions
    5153 */
     54int
     55openpam_borrow_cred(pam_handle_t *_pamh,
     56        const struct passwd *_pwd);
     57
     58void
     59openpam_free_data(pam_handle_t *_pamh,
     60        void *_data,
     61        int _status);
     62
    5263const char *
    5364openpam_get_option(pam_handle_t *_pamh,
    5465        const char *_option);
     66
     67int
     68openpam_restore_cred(pam_handle_t *_pamh);
    5569
    5670int
Note: See TracChangeset for help on using the changeset viewer.