summaryrefslogtreecommitdiffstats
path: root/lib/libc/crypt/cryptutil.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-09-12 14:56:50 +0000
committerguenther <guenther@openbsd.org>2015-09-12 14:56:50 +0000
commit0e3c6306f9e8c62197134dcb9c6f7fdda47b72b8 (patch)
tree156ca6d3bca87e18d5b8368eb09c65267e4c649a /lib/libc/crypt/cryptutil.c
parentWrap <getopt.h> to make the functions weak and make access to the initialized (diff)
downloadwireguard-openbsd-0e3c6306f9e8c62197134dcb9c6f7fdda47b72b8.tar.xz
wireguard-openbsd-0e3c6306f9e8c62197134dcb9c6f7fdda47b72b8.zip
Wrap <unistd.h> so that internal calls go direct and they're all weak symbols
Delete unused 'fd' argument from internal function oldttyname()
Diffstat (limited to 'lib/libc/crypt/cryptutil.c')
-rw-r--r--lib/libc/crypt/cryptutil.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/crypt/cryptutil.c b/lib/libc/crypt/cryptutil.c
index d750933ffb4..20d68b3fd30 100644
--- a/lib/libc/crypt/cryptutil.c
+++ b/lib/libc/crypt/cryptutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptutil.c,v 1.10 2015/07/23 22:19:03 tedu Exp $ */
+/* $OpenBSD: cryptutil.c,v 1.11 2015/09/12 14:56:50 guenther Exp $ */
/*
* Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
*
@@ -50,6 +50,7 @@ fail:
errno = EACCES;
return -1;
}
+DEF_WEAK(crypt_checkpass);
int
crypt_newhash(const char *pass, const char *pref, char *hash, size_t hashlen)
@@ -95,3 +96,4 @@ crypt_newhash(const char *pass, const char *pref, char *hash, size_t hashlen)
err:
return rv;
}
+DEF_WEAK(crypt_newhash);