summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-10-15 17:53:19 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-10-15 17:53:19 +0000
commit9856ade79a1c59da40b3cd174804bf9363d156ca (patch)
treeb0e6f97157823c8921b2755c13f2601ffd8d3878 /lib
parent52f6888f3449a21efd8af5150ec9ea010f3b26bd (diff)
Document the fact that calling auth_setitem() with a NULL value
clears (frees) the corresponding value in the auth session.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/auth_subr.317
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/libc/gen/auth_subr.3 b/lib/libc/gen/auth_subr.3
index c31a37007e0..33b22eba227 100644
--- a/lib/libc/gen/auth_subr.3
+++ b/lib/libc/gen/auth_subr.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: auth_subr.3,v 1.8 2002/05/08 16:31:05 millert Exp $
+.\" $OpenBSD: auth_subr.3,v 1.9 2002/10/15 17:53:18 millert Exp $
.\"
.\" Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved.
.\"
@@ -363,6 +363,8 @@ The style of authentication being performed, as defined by the
.Pa /etc/login.conf file.
The style determines which login script should actually be used.
.El
+The value returned points to private memory and should not be
+freed by the caller.
.Pp
The
.Fn auth_getvalue
@@ -422,13 +424,20 @@ The items are described above with the
.Fn auth_getitem
function.
In addition, if
-.Fa item
+.Fa value
is
-.Li AUTH_ALL
-and
+.Dv NULL ,
+the
+.Fa item
+is cleared.
+If
.Fa value
is
.Dv NULL
+and
+.Fa item
+is
+.Li AUTH_ALL
then all items are cleared.
.Pp
The