summaryrefslogtreecommitdiff
path: root/openbsd-compat/readpassphrase.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2016-10-19 03:23:16 +1100
committerDarren Tucker <dtucker@zip.com.au>2016-10-19 03:23:16 +1100
commitf901440cc844062c9bab0183d133f7ccc58ac3a5 (patch)
treeb71988090a673d5025be2fec1ccad7deb426f65f /openbsd-compat/readpassphrase.c
parent032147b69527e5448a511049b2d43dbcae582624 (diff)
Import readpassphrase.c rev 1.25.
Wrap <readpassphrase.h> so internal calls go direct and readpassphrase is weak. (DEF_WEAK is a no-op in portable.)
Diffstat (limited to 'openbsd-compat/readpassphrase.c')
-rw-r--r--openbsd-compat/readpassphrase.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsd-compat/readpassphrase.c b/openbsd-compat/readpassphrase.c
index c99b4e20c..783cc9e67 100644
--- a/openbsd-compat/readpassphrase.c
+++ b/openbsd-compat/readpassphrase.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: readpassphrase.c,v 1.24 2013/11/24 23:51:29 deraadt Exp $ */ 1/* $OpenBSD: readpassphrase.c,v 1.25 2015/09/14 10:45:27 guenther Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000-2002, 2007, 2010 4 * Copyright (c) 2000-2002, 2007, 2010
@@ -195,6 +195,7 @@ restart:
195 errno = save_errno; 195 errno = save_errno;
196 return(nr == -1 ? NULL : buf); 196 return(nr == -1 ? NULL : buf);
197} 197}
198DEF_WEAK(readpassphrase);
198 199
199#if 0 200#if 0
200char * 201char *