summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDante Catalfamo2021-05-30 17:08:08 -0400
committerDante Catalfamo2021-05-30 17:08:08 -0400
commit17676aa4cc0a4cbf663f11b2fb9dbbeec1467051 (patch)
tree3ff041cd90fbea2fa370a65e464996951f476739
parent82248eed2713e1623f47cc04681b8873af6c18fc (diff)
downloadblog-17676aa4cc0a4cbf663f11b2fb9dbbeec1467051.tar.gz
blog-17676aa4cc0a4cbf663f11b2fb9dbbeec1467051.tar.bz2
blog-17676aa4cc0a4cbf663f11b2fb9dbbeec1467051.zip
bsd-auth: better wording, use consistent voice in explanation
-rw-r--r--content/posts/WIP-how-bsd-authentication-works/index.org14
1 files changed, 5 insertions, 9 deletions
diff --git a/content/posts/WIP-how-bsd-authentication-works/index.org b/content/posts/WIP-how-bsd-authentication-works/index.org
index 46387c4..527f719 100644
--- a/content/posts/WIP-how-bsd-authentication-works/index.org
+++ b/content/posts/WIP-how-bsd-authentication-works/index.org
@@ -1344,7 +1344,7 @@
First, the variable arguments are placed in =as->ap0=.
[[#_auth_next_arg][=_auth_next_arg=]] is called once, with the result being set as the
- first element in =argv=. If =as->fd= is set, add =-v= and =fd=4= to
+ first element in =argv=. If =as->fd= is set, adds =-v= and =fd=4= to
=argv=.
Then it loops through the =optlist= and appends =-v= followed the
@@ -1358,7 +1358,7 @@
is called the "back channel", and is used to communicate with the
authentication module.
- The process now calls [[https://man.openbsd.org/man2/fork.2][=fork(2)=]].
+ The process then calls [[https://man.openbsd.org/man2/fork.2][=fork(2)=]].
Here two constants are set for the back channel and optional
authentication file descriptors.
@@ -1590,13 +1590,9 @@
#+end_src
@@html: </details> @@
- Returns one argument per call.
-
- First goes through =as->ap0=, returning one argument at a time
- until it hits the =NULL= character pointer. At which point it
- calls =va_end(as->ap0)= and [[https://man.openbsd.org/man3/bzero.3#explicit_bzero][=explicit_bzero(3)=]]'s it.
-
- Moves on to do the same thing for =as->ap=.
+ Loops through =as->ap0= then =as->ap=, returning one argument per
+ call. Calls =va_end= on each list once it finishes with them, then
+ [[https://man.openbsd.org/man3/bzero.3#explicit_bzero][=explicit_bzero(3)=]]'s them.
Finally when it's gone through both lists, returns =NULL=