diff options
Diffstat (limited to 'content/posts/WIP-how-bsd-authentication-works/index.org')
-rw-r--r-- | content/posts/WIP-how-bsd-authentication-works/index.org | 26 |
1 files changed, 20 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 a8ebeb5..319e600 100644 --- a/content/posts/WIP-how-bsd-authentication-works/index.org +++ b/content/posts/WIP-how-bsd-authentication-works/index.org @@ -64,6 +64,10 @@ Click on any function prototype in this post to see its definition. + I've also created a [[#graph][graph]] at the bottom of the post to help + visualize the function calls and which source files those functions + belong to. + All code snippets from this blog post belong to the OpenBSD contributors. Please see the [[#copyright][Copyright]] section for details. @@ -155,7 +159,7 @@ :END: Approval scripts can be much simpler than the full login modules - used by the other functions. They are given the same back-channel as + used by the other functions. They are given the same back channel as auth modules, but should not explicitly authenticate or revoke users. They should exit with a zero status for approval, or non-zero status to signal disapproval. @@ -176,14 +180,12 @@ :PROPERTIES: :CUSTOM_ID: auth_userokay :END: - +<<here>> [[https://man.openbsd.org/authenticate.3#auth_userokay][=auth_userokay=]] is the highest level function, and easiest to use. It takes four character arrays as arguments, =name=, =style=, =type=, and =password=. It returns either a =0= for failure, of a non-zero value for success. - This function lives inside =/lib/libc/gen/authenticate.c= - @@html: <details> <summary> @@ #+BEGIN_SRC c int auth_userokay(char *name, char *style, char *type, char *password); @@ -2701,9 +2703,21 @@ - The [[#auth_getchallenge][=auth_getchallenge=]] function in the [[https://man.openbsd.org/auth_subr.3#auth_getchallenge][=auth_subr(3)=]] man page doesn't seem to exist in the source code. -* Graph +* Call Graph + :PROPERTIES: + :CUSTOM_ID: graph + :END: + + #+ATTR_HTML: :title Authentication call graph + #+ATTR_HTML: :title Authentication call graph + [[file:graph.svg]] + + @@html: <details> <summary> @@ + *Click here* to see the code that generates the call graph. + @@html: </summary> @@ +#+INCLUDE: "gen_dot.rb" src ruby + @@html: </details> @@ -[[file:graph.svg]] * Copyright :PROPERTIES: |