diff options
author | Dante Catalfamo | 2021-05-29 22:39:34 -0400 |
---|---|---|
committer | Dante Catalfamo | 2021-05-29 22:39:34 -0400 |
commit | 6dc8cfdf7ff86b7b2463c349d644a093af43ce01 (patch) | |
tree | 36cc51852e7aed92cade8371118b5e2eec684b32 | |
parent | 8391d75b6ee4d2d71d2208838aa44e09a61f2e62 (diff) | |
download | blog-6dc8cfdf7ff86b7b2463c349d644a093af43ce01.tar.gz blog-6dc8cfdf7ff86b7b2463c349d644a093af43ce01.tar.bz2 blog-6dc8cfdf7ff86b7b2463c349d644a093af43ce01.zip |
Add auth_getpwd
-rw-r--r-- | content/posts/WIP-how-bsd-authentication-works/index.org | 14 |
1 files changed, 13 insertions, 1 deletions
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: <details> <summary> @@ + #+begin_src c + struct passwd *auth_getpwd(auth_session_t *as) + #+end_src + @@html: </summary> @@ + #+begin_src c + { return (as->pwd); } + #+end_src + @@html: </details> @@ + + =auth_getpwd= returns =as->pwd=. + ** auth_set_va_list :PROPERTIES: :CUSTOM_ID: auth_set_va_list |