summaryrefslogtreecommitdiffstats
path: root/content/posts/WIP-how-bsd-authentication-works
diff options
context:
space:
mode:
Diffstat (limited to 'content/posts/WIP-how-bsd-authentication-works')
-rw-r--r--content/posts/WIP-how-bsd-authentication-works/index.org13
1 files changed, 13 insertions, 0 deletions
diff --git a/content/posts/WIP-how-bsd-authentication-works/index.org b/content/posts/WIP-how-bsd-authentication-works/index.org
index b741f17..de2b651 100644
--- a/content/posts/WIP-how-bsd-authentication-works/index.org
+++ b/content/posts/WIP-how-bsd-authentication-works/index.org
@@ -909,6 +909,19 @@
:CUSTOM_ID: auth_challenge
:END:
+ #+begin_src c
+ char *auth_challenge(auth_session_t *as)
+ #+end_src
+
+ =auth_challenge=, much like [[#auth_verify][=auth_verify=]] is a function that acts as
+ a front-end for [[#auth_call][=auth_call=]], except used specifically for
+ challenges.
+
+ First the session =as= is checked. If it's =NULL=, or =as->style= is
+ =NULL=, =as->name= is =NULL=, or if the username begins with a
+ hyphen, or has a length of zero, the function returns =NULL=.
+
+ <<HERE>>
* auth_userresponse
:PROPERTIES: