From dabe67c5b31b63a6037bbe6d0482f800e55012c4 Mon Sep 17 00:00:00 2001 From: Dante Catalfamo Date: Thu, 29 Oct 2020 12:49:18 -0400 Subject: More auth_subr func --- content/posts/WIP-how-bsd-authentication-works/index.org | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'content/posts/WIP-how-bsd-authentication-works/index.org') diff --git a/content/posts/WIP-how-bsd-authentication-works/index.org b/content/posts/WIP-how-bsd-authentication-works/index.org index 15497f1..310be9c 100644 --- a/content/posts/WIP-how-bsd-authentication-works/index.org +++ b/content/posts/WIP-how-bsd-authentication-works/index.org @@ -238,9 +238,15 @@ =auth_setoption= initializes a new =authopts= struct, and sets the =*opt= field to a string formatted as =sprintf(%s=%s, n, v)=. It - then point the =next= field on the last =authopts= struct in =*as= + then point the =*next= field on the last =authopts= struct in =*as= to its location. It returns =0= on success. + ** auth_setstate + #+begin_src c + void auth_setstate(auth_session_t *as, int s) + #+end_src + + =auth_setstate= sets the state of =*as= to =s= * auth_open #+begin_src c -- cgit v1.2.3