diff options
Diffstat (limited to 'lib/libc/gen')
-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 |