summaryrefslogtreecommitdiffstats
path: root/content/posts/WIP-how-bsd-authentication-works
diff options
context:
space:
mode:
authorDante Catalfamo2020-11-02 17:10:08 -0500
committerDante Catalfamo2020-11-02 17:10:08 -0500
commit65f11276c9f79a6443cedae4f9a8c1f88a5816eb (patch)
tree07aef197fa4fac6034d32470b53948cd85d6931b /content/posts/WIP-how-bsd-authentication-works
parent6aa04390517d0559a0a671a994bdc18e1b50fc81 (diff)
downloadblog-65f11276c9f79a6443cedae4f9a8c1f88a5816eb.tar.gz
blog-65f11276c9f79a6443cedae4f9a8c1f88a5816eb.tar.bz2
blog-65f11276c9f79a6443cedae4f9a8c1f88a5816eb.zip
auth_getvalue added
Diffstat (limited to 'content/posts/WIP-how-bsd-authentication-works')
-rw-r--r--content/posts/WIP-how-bsd-authentication-works/index.org17
1 files changed, 11 insertions, 6 deletions
diff --git a/content/posts/WIP-how-bsd-authentication-works/index.org b/content/posts/WIP-how-bsd-authentication-works/index.org
index 6126207..87339b4 100644
--- a/content/posts/WIP-how-bsd-authentication-works/index.org
+++ b/content/posts/WIP-how-bsd-authentication-works/index.org
@@ -306,7 +306,17 @@
** auth_getvalue
- <<here2>>
+ #+BEGIN_SRC c
+ char *auth_getvalue(auth_session_t *as, char *what)
+ #+END_SRC
+
+ =auth_getvalue= scans =as->spool= looking for lines beginning with
+ =BI_VALUE=. It then checks if the next word is equal to =what=.
+
+ When it finds the desired line, it duplicates the string, converts
+ escape sequences in the value, and returns the newly created
+ string.
+
* auth_open
#+begin_src c
@@ -652,11 +662,6 @@
=okay= is then returned to the caller.
-
- # Write about =auth_getvalue=
-
- <<here>>
-
** _auth_next_arg
#+BEGIN_SRC c
static char *_auth_next_arg(auth_session_t *as)