- More fixes.

- Document the built-in defaults.
This commit is contained in:
ad 2000-07-10 11:21:32 +00:00
parent e8362050a9
commit 056b0653ce
1 changed files with 15 additions and 5 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: pw_getconf.3,v 1.2 2000/07/07 10:33:12 ad Exp $ .\" $NetBSD: pw_getconf.3,v 1.3 2000/07/10 11:21:32 ad Exp $
.\" .\"
.\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> .\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
.\" All rights reserved. .\" All rights reserved.
@ -35,7 +35,7 @@
.Os .Os
.Sh NAME .Sh NAME
.Nm pw_getconf .Nm pw_getconf
.Nd passwd configuration access function .Nd password encryption configuration access function
.Sh SYNOPSIS .Sh SYNOPSIS
.Fd #include <util.h> .Fd #include <util.h>
.Ft void .Ft void
@ -57,9 +57,18 @@ an empty string will be returned in data.
.Pp .Pp
To retrieve default values the key To retrieve default values the key
.Pa default .Pa default
can be used. can be used. In this case, if
.Pa /etc/passwd.conf
does not exist or does not contain a
.Pa default
section, the built-in defaults will be returned. They are as follows:
.Bl -column localcipher data -offset indent
.It Sy option data
.It ypcipher old
.It localcipher old
.El
.Pp .Pp
An empty string is also returned for other errors. An empty string is returned for all errors.
.Sh FILES .Sh FILES
.Bl -tag -width /etc/passwd.conf -compact .Bl -tag -width /etc/passwd.conf -compact
.It Pa /etc/passwd.conf .It Pa /etc/passwd.conf
@ -68,6 +77,7 @@ An empty string is also returned for other errors.
.Xr passwd 5 , .Xr passwd 5 ,
.Xr passwd.conf 5 .Xr passwd.conf 5
.Sh HISTORY .Sh HISTORY
The
.Fn pw_getconf .Fn pw_getconf
first appeared in function first appeared in
.Nx 1.6 . .Nx 1.6 .