diff options
Diffstat (limited to 'content')
| -rw-r--r-- | content/posts/WIP-how-bsd-authentication-works/index.org | 107 | 
1 files changed, 106 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 5635604..520c21f 100644 --- a/content/posts/WIP-how-bsd-authentication-works/index.org +++ b/content/posts/WIP-how-bsd-authentication-works/index.org @@ -66,7 +66,8 @@    [[https://man.openbsd.org/auth_subr][=auth_subr(3)=]].    Click on any function prototype in this post to see its definition. -  All code snippets from this blog post belong to the OpenBSD contributors. +  All code snippets from this blog post belong to the OpenBSD +  contributors. Please see the [[#copyright][Copyright]] section for details.  * BSD Auth Modules    :PROPERTIES: @@ -2616,6 +2617,110 @@    It returns =0= if the user is allowed to login, and =-1= otherwise. +* Copyright +  :PROPERTIES: +  :CUSTOM_ID: copyright +  :END: + +  @@html: <details> <summary> @@ +  *Click here to expand copyright notices* +  @@html: </summary> @@ +  #+CAPTION: From [[https://github.com/openbsd/src/blob/master/lib/libc/gen/authenticate.c][=authenticate.c=]] +  #+begin_src text +  /*	$OpenBSD: authenticate.c,v 1.28 2019/12/04 06:25:45 deraadt Exp $	*/ + +  /*- +   ,* Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. +   ,* +   ,* Redistribution and use in source and binary forms, with or without +   ,* modification, are permitted provided that the following conditions +   ,* are met: +   ,* 1. Redistributions of source code must retain the above copyright +   ,*    notice, this list of conditions and the following disclaimer. +   ,* 2. Redistributions in binary form must reproduce the above copyright +   ,*    notice, this list of conditions and the following disclaimer in the +   ,*    documentation and/or other materials provided with the distribution. +   ,* 3. All advertising materials mentioning features or use of this software +   ,*    must display the following acknowledgement: +   ,*	This product includes software developed by Berkeley Software Design, +   ,*	Inc. +   ,* 4. The name of Berkeley Software Design, Inc.  may not be used to endorse +   ,*    or promote products derived from this software without specific prior +   ,*    written permission. +   ,* +   ,* THIS SOFTWARE IS PROVIDED BY BERKELEY SOFTWARE DESIGN, INC. ``AS IS'' AND +   ,* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +   ,* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +   ,* ARE DISCLAIMED.  IN NO EVENT SHALL BERKELEY SOFTWARE DESIGN, INC. BE LIABLE +   ,* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +   ,* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +   ,* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +   ,* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +   ,* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +   ,* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +   ,* SUCH DAMAGE. +   ,* +   ,*	BSDI $From: authenticate.c,v 2.21 1999/09/08 22:33:26 prb Exp $ +   ,*/ +  #+end_src + +  #+CAPTION: From [[https://github.com/openbsd/src/blob/master/lib/libc/gen/auth_subr.c][=auth_subr.c=]] +  #+begin_src text +  /*	$OpenBSD: auth_subr.c,v 1.56 2020/10/13 04:42:28 guenther Exp $	*/ + +  /* +   ,* Copyright (c) 2000-2002,2004 Todd C. Miller <millert@openbsd.org> +   ,* +   ,* Permission to use, copy, modify, and distribute this software for any +   ,* purpose with or without fee is hereby granted, provided that the above +   ,* copyright notice and this permission notice appear in all copies. +   ,* +   ,* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +   ,* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +   ,* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +   ,* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +   ,* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +   ,* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +   ,* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +   ,*/ +  /*- +   ,* Copyright (c) 1995,1996,1997 Berkeley Software Design, Inc. +   ,* All rights reserved. +   ,* +   ,* Redistribution and use in source and binary forms, with or without +   ,* modification, are permitted provided that the following conditions +   ,* are met: +   ,* 1. Redistributions of source code must retain the above copyright +   ,*    notice, this list of conditions and the following disclaimer. +   ,* 2. Redistributions in binary form must reproduce the above copyright +   ,*    notice, this list of conditions and the following disclaimer in the +   ,*    documentation and/or other materials provided with the distribution. +   ,* 3. All advertising materials mentioning features or use of this software +   ,*    must display the following acknowledgement: +   ,*	This product includes software developed by Berkeley Software Design, +   ,*	Inc. +   ,* 4. The name of Berkeley Software Design, Inc.  may not be used to endorse +   ,*    or promote products derived from this software without specific prior +   ,*    written permission. +   ,* +   ,* THIS SOFTWARE IS PROVIDED BY BERKELEY SOFTWARE DESIGN, INC. ``AS IS'' AND +   ,* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +   ,* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +   ,* ARE DISCLAIMED.  IN NO EVENT SHALL BERKELEY SOFTWARE DESIGN, INC. BE LIABLE +   ,* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +   ,* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +   ,* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +   ,* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +   ,* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +   ,* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +   ,* SUCH DAMAGE. +   ,* +   ,*	BSDI $From: auth_subr.c,v 2.4 1999/09/08 04:10:40 prb Exp $ +   ,*/ +  #+end_src +  @@html: </details> @@ + +  * COMMENT note                                                     :noexport:   --- | 
