From 6dc8cfdf7ff86b7b2463c349d644a093af43ce01 Mon Sep 17 00:00:00 2001 From: Dante Catalfamo Date: Sat, 29 May 2021 22:39:34 -0400 Subject: Add auth_getpwd --- content/posts/WIP-how-bsd-authentication-works/index.org | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'content/posts/WIP-how-bsd-authentication-works') diff --git a/content/posts/WIP-how-bsd-authentication-works/index.org b/content/posts/WIP-how-bsd-authentication-works/index.org index fce6768..352a353 100644 --- a/content/posts/WIP-how-bsd-authentication-works/index.org +++ b/content/posts/WIP-how-bsd-authentication-works/index.org @@ -522,7 +522,7 @@ =auth_getstate= return the =state= of =*as=. -** auth_setpwd +** auth_setpwd / auth_getpwd :PROPERTIES: :CUSTOM_ID: auth_setpwd :END: @@ -585,6 +585,18 @@ returns =0=. If there is no entry with that username, it returns =1=. + @@html:
@@ + #+begin_src c + struct passwd *auth_getpwd(auth_session_t *as) + #+end_src + @@html: @@ + #+begin_src c + { return (as->pwd); } + #+end_src + @@html:
@@ + + =auth_getpwd= returns =as->pwd=. + ** auth_set_va_list :PROPERTIES: :CUSTOM_ID: auth_set_va_list -- cgit v1.2.3