Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 64ab583f3e
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (50 sloc) 1.781 kb
/*
* nss_mcdb_authn - query mcdb of shadow nsswitch.conf database
*
* Copyright (c) 2011, Glue Logic LLC. All rights reserved. code()gluelogic.com
*
* This file is part of mcdb.
*
* mcdb is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 2.1 of the License, or
* (at your option) any later version.
*
* mcdb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with mcdb. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef INCLUDED_NSS_MCDB_AUTHN_H
#define INCLUDED_NSS_MCDB_AUTHN_H
#include "nss_mcdb.h"
#include "code_attributes.h"
void _nss_mcdb_setspent(void);
void _nss_mcdb_endspent(void);
enum {
NSS_SP_LSTCHG = 0,
NSS_SP_MIN = 4,
NSS_SP_MAX = 8,
NSS_SP_WARN = 12,
NSS_SP_INACT = 16,
NSS_SP_EXPIRE = 20,
NSS_SP_FLAG = 24,
NSS_SP_PWDP = 28,
NSS_SP_HDRSZ = 32 /*(must be multiple of 4; round up)*/
};
#ifndef _AIX
#include <shadow.h> /* (struct spwd) */
nss_status_t
_nss_mcdb_getspent_r(struct spwd * restrict, char * restrict, size_t,
int * restrict)
__attribute_nonnull__ __attribute_warn_unused_result__;
nss_status_t
_nss_mcdb_getspnam_r(const char * restrict,
struct spwd * restrict, char * restrict, size_t,
int * restrict)
__attribute_nonnull__ __attribute_warn_unused_result__;
#endif /* !_AIX */
#endif
Jump to Line
Something went wrong with that request. Please try again.