From 2052394aad4702e90fb28f4cfa499b33559e33d2 Mon Sep 17 00:00:00 2001
From: Dante Catalfamo
Date: Fri, 3 Jul 2020 20:19:56 -0400
Subject: give auth_open its own paragraph

---
 content/posts/how-bsd-authentication-works/index.org | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

(limited to 'content')

diff --git a/content/posts/how-bsd-authentication-works/index.org b/content/posts/how-bsd-authentication-works/index.org
index b047b29..46b804a 100644
--- a/content/posts/how-bsd-authentication-works/index.org
+++ b/content/posts/how-bsd-authentication-works/index.org
@@ -195,6 +195,13 @@
   };
   #+END_SRC
 
+* auth_open
+
+  The =auth_open= function is used by several functions to create a
+  new auth session. It allocates an =auth_session_t= struct on the
+  heap, sets its default =service= to =login=, and it's =fd= to =-1=,
+  and returns the pointer.
+
 * auth_usercheck
 
   #+BEGIN_SRC c
@@ -205,10 +212,9 @@
   checks the login class against the =login.conf= db, along with
   confirming the login styles available.
 
-  If the password is non-=NULL=, then it calls =auth_open=, which
-  allocates and returns the pointer to an =auth_session_t=, and sets its
-  default =service= to =login=, and it's =fd= to =-1=. After that's
-  returned, =auth_usercheck= calls (with =as= as the session struct)
+  If the password is non-=NULL=, then it creates a new session using
+  =auth_open=. With the new session, =auth_usercheck= calls (with =as=
+  as the session struct)
 
   #+BEGIN_SRC c
   auth_setitem(as, AUTHV_SERVICE, "response");
-- 
cgit v1.2.3