diff options
author | Martin Natano <natano@cvs.openbsd.org> | 2016-09-01 09:46:33 +0000 |
---|---|---|
committer | Martin Natano <natano@cvs.openbsd.org> | 2016-09-01 09:46:33 +0000 |
commit | d0ecc04b169b4d8231234ad400d33896dc436613 (patch) | |
tree | 559dc480602b3d9723f75d22d8ae200ca4f43e3d | |
parent | cb805ad5354ebb5270d4269af6a451d2e9f6c769 (diff) |
Mention explicit_bzero(3); ok jmc
-rw-r--r-- | lib/libc/gen/getpass.3 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/gen/getpass.3 b/lib/libc/gen/getpass.3 index 6d5f6aa0d92..e4796be3d14 100644 --- a/lib/libc/gen/getpass.3 +++ b/lib/libc/gen/getpass.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getpass.3,v 1.15 2014/01/21 03:15:45 schwarze Exp $ +.\" $OpenBSD: getpass.3,v 1.16 2016/09/01 09:46:32 natano Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: January 21 2014 $ +.Dd $Mdocdate: September 1 2016 $ .Dt GETPASS 3 .Os .Sh NAME @@ -60,7 +60,9 @@ characters and the terminating newline character are discarded. .Fn getpass turns off character echoing while reading the password. .Pp -The calling process should zero the password as soon as possible to +The calling process should zero the password with +.Xr explicit_bzero 3 +as soon as possible to avoid leaving the cleartext password visible in the process's address space. .Sh RETURN VALUES |