diff options
author | Dante Catalfamo | 2020-12-22 01:55:28 -0500 |
---|---|---|
committer | Dante Catalfamo | 2020-12-22 01:55:28 -0500 |
commit | 23740ac41b441c3972701eb8e52541ad7c6591aa (patch) | |
tree | 7bc6fd2849e849ddb79ac72f265dda02c7941a93 /content/posts/WIP-how-bsd-authentication-works/index.org | |
parent | 854244a43c6e9375735434486335ed88fbcc241c (diff) | |
download | blog-23740ac41b441c3972701eb8e52541ad7c6591aa.tar.gz blog-23740ac41b441c3972701eb8e52541ad7c6591aa.tar.bz2 blog-23740ac41b441c3972701eb8e52541ad7c6591aa.zip |
bsd-auth: Begin work on auth_challenge
Diffstat (limited to 'content/posts/WIP-how-bsd-authentication-works/index.org')
-rw-r--r-- | content/posts/WIP-how-bsd-authentication-works/index.org | 13 |
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: |