summaryrefslogtreecommitdiff
path: root/sys/man
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-01-21 22:37:45 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2018-01-21 22:37:45 +0100
commit3004f058f69a16f09c07c58d0e60a1732190f0d3 (patch)
tree183e78edf574b5cfed682e03adbcd8c787644c0f /sys/man
parenta7974d96b7e510cba9ae4ef87fed8b0ded109f98 (diff)
libauth: add auth_respondAI() function to get AuthInfo for mschap/mschapv2
Diffstat (limited to 'sys/man')
-rw-r--r--sys/man/2/auth19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/man/2/auth b/sys/man/2/auth
index 691671eb2..e518a99c7 100644
--- a/sys/man/2/auth
+++ b/sys/man/2/auth
@@ -1,6 +1,6 @@
.TH AUTH 2
.SH NAME
-amount, newns, addns, login, noworld, auth_proxy, fauth_proxy, auth_allocrpc, auth_freerpc, auth_rpc, auth_getkey, amount_getkey, auth_freeAI, auth_chuid, auth_challenge, auth_response, auth_freechal, auth_respond, auth_userpasswd, auth_getuserpasswd, auth_getinfo \- routines for authenticating users
+amount, newns, addns, login, noworld, auth_proxy, fauth_proxy, auth_allocrpc, auth_freerpc, auth_rpc, auth_getkey, amount_getkey, auth_freeAI, auth_chuid, auth_challenge, auth_response, auth_freechal, auth_respond, auth_respondAI, auth_userpasswd, auth_getuserpasswd, auth_getinfo \- routines for authenticating users
.SH SYNOPSIS
.nf
.PP
@@ -68,6 +68,9 @@ void auth_freechal(Chalstate*);
int auth_respond(void *chal, uint nchal, char *user, uint nuser, void *resp, uint nresp, AuthGetkey *getkey, char *fmt, ...);
.PP
.B
+int auth_respondAI(void *chal, uint nchal, char *user, uint nuser, void *resp, uint nresp, AuthInfo **ai, AuthGetkey *getkey, char *fmt, ...);
+.PP
+.B
AuthInfo* auth_userpasswd(char*user, char*password);
.PP
.B
@@ -350,6 +353,20 @@ and it will use
.I factotum
to return the proper user and response.
.PP
+.I Auth_respondAI
+is like
+.I auth_respond
+but has an additional
+.I ai
+output parameter to return an
+.I AuthInfo
+structure on success that holds protocol specific secret keys
+derived from the exchange. The returned
+.I AuthInfo
+structure should be freed with
+.I auth_freeAI
+by the caller.
+.PP
.I Auth_userpasswd
verifies a simple user/password pair.
.I Auth_getuserpasswd