summaryrefslogtreecommitdiff
path: root/lib/libc/hidden
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-09-14 10:45:28 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-09-14 10:45:28 +0000
commit0487b68f110fa292916e43ca578eef61c7c89fdf (patch)
tree6cb8e845adf73be06b8380eb9d5c6d6e8665ac68 /lib/libc/hidden
parent24044e57bca88fb40cc7d16c630b2467e6ef69b8 (diff)
Wrap <readpassphrase.h> so internal calls go direct and readpassphrase is weak
Diffstat (limited to 'lib/libc/hidden')
-rw-r--r--lib/libc/hidden/readpassphrase.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/libc/hidden/readpassphrase.h b/lib/libc/hidden/readpassphrase.h
new file mode 100644
index 00000000000..24c15636aaa
--- /dev/null
+++ b/lib/libc/hidden/readpassphrase.h
@@ -0,0 +1,25 @@
+/* $OpenBSD: readpassphrase.h,v 1.1 2015/09/14 10:45:27 guenther Exp $ */
+/*
+ * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _LIBC_READPASSPHRASE_H_
+#define _LIBC_READPASSPHRASE_H_
+
+#include_next <readpassphrase.h>
+
+PROTO_NORMAL(readpassphrase);
+
+#endif /* !_LIBC_READPASSPHRASE_H_ */