summaryrefslogtreecommitdiff
path: root/lib/libc/gen/authenticate.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/authenticate.c')
-rw-r--r--lib/libc/gen/authenticate.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libc/gen/authenticate.c b/lib/libc/gen/authenticate.c
index 4ab4a600b64..3043836777a 100644
--- a/lib/libc/gen/authenticate.c
+++ b/lib/libc/gen/authenticate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authenticate.c,v 1.22 2015/08/31 02:53:57 guenther Exp $ */
+/* $OpenBSD: authenticate.c,v 1.23 2015/09/12 15:20:14 guenther Exp $ */
/*-
* Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved.
@@ -100,6 +100,7 @@ auth_mkvalue(char *value)
*p = '\0';
return (big);
}
+DEF_WEAK(auth_mkvalue);
void
auth_checknologin(login_cap_t *lc)
@@ -107,6 +108,7 @@ auth_checknologin(login_cap_t *lc)
if (_auth_checknologin(lc, 1))
exit(1);
}
+DEF_WEAK(auth_checknologin);
static int
_auth_checknologin(login_cap_t *lc, int print)
@@ -169,6 +171,7 @@ auth_cat(char *file)
(void)close(fd);
return (1);
}
+DEF_WEAK(auth_cat);
int
auth_approval(auth_session_t *as, login_cap_t *lc, char *name, char *type)
@@ -300,6 +303,7 @@ out:
return (auth_close(as));
return (auth_getstate(as) & AUTH_ALLOW);
}
+DEF_WEAK(auth_approval);
auth_session_t *
auth_usercheck(char *name, char *style, char *type, char *password)
@@ -355,6 +359,7 @@ auth_usercheck(char *name, char *style, char *type, char *password)
login_close(lc);
return (as);
}
+DEF_WEAK(auth_usercheck);
int
auth_userokay(char *name, char *style, char *type, char *password)
@@ -365,6 +370,7 @@ auth_userokay(char *name, char *style, char *type, char *password)
return (as != NULL ? auth_close(as) : 0);
}
+DEF_WEAK(auth_userokay);
auth_session_t *
auth_userchallenge(char *name, char *style, char *type, char **challengep)
@@ -417,6 +423,7 @@ auth_userchallenge(char *name, char *style, char *type, char **challengep)
*challengep = auth_challenge(as);
return (as);
}
+DEF_WEAK(auth_userchallenge);
int
auth_userresponse(auth_session_t *as, char *response, int more)
@@ -468,6 +475,7 @@ auth_userresponse(auth_session_t *as, char *response, int more)
return (auth_close(as));
return (auth_getstate(as) & AUTH_ALLOW);
}
+DEF_WEAK(auth_userresponse);
/*
* Authenticate name with the specified style.
@@ -508,3 +516,4 @@ auth_verify(auth_session_t *as, char *style, char *name, ...)
va_end(ap);
return (as);
}
+DEF_WEAK(auth_verify);