summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/readpassphrase.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-09-14 10:45:27 +0000
committerguenther <guenther@openbsd.org>2015-09-14 10:45:27 +0000
commit6709dcd9afeb897f21d6d3b51911479e7c46e5e4 (patch)
treed40fef121fb269918c93935aa7dc621a51867b09 /lib/libc/gen/readpassphrase.c
parentWrap <netgroup.h> so internal calls go direct and the symbols are all weak (diff)
downloadwireguard-openbsd-6709dcd9afeb897f21d6d3b51911479e7c46e5e4.tar.xz
wireguard-openbsd-6709dcd9afeb897f21d6d3b51911479e7c46e5e4.zip
Wrap <readpassphrase.h> so internal calls go direct and readpassphrase is weak
Diffstat (limited to 'lib/libc/gen/readpassphrase.c')
-rw-r--r--lib/libc/gen/readpassphrase.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/readpassphrase.c b/lib/libc/gen/readpassphrase.c
index 6854617591c..3837b0881de 100644
--- a/lib/libc/gen/readpassphrase.c
+++ b/lib/libc/gen/readpassphrase.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readpassphrase.c,v 1.24 2013/11/24 23:51:29 deraadt Exp $ */
+/* $OpenBSD: readpassphrase.c,v 1.25 2015/09/14 10:45:27 guenther Exp $ */
/*
* Copyright (c) 2000-2002, 2007, 2010
@@ -171,6 +171,7 @@ restart:
errno = save_errno;
return(nr == -1 ? NULL : buf);
}
+DEF_WEAK(readpassphrase);
char *
getpass(const char *prompt)