annotate LICENSE @ 44:50371046c61a default tip

Add support for pam_get_authtok and minor cleanups. This change adds the pam_get_authtok function for PAM modules, as well as performing a few cleanups: - Pattern match in a few more places. - Pull out string-copying into a function. - Format and run clippy. - Replace outdated PAM doc links with man7.org pages.
author Paul Fisher <paul@pfish.zone>
date Sat, 08 Mar 2025 19:29:46 -0500
parents 8ed8b2cfd909
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
1 The MIT License (MIT)
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
2
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
3 Copyright (c) 2015 TOZNY
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
4
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
5 Permission is hereby granted, free of charge, to any person obtaining a copy
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
6 of this software and associated documentation files (the "Software"), to deal
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
7 in the Software without restriction, including without limitation the rights
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
9 copies of the Software, and to permit persons to whom the Software is
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
10 furnished to do so, subject to the following conditions:
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
11
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
12 The above copyright notice and this permission notice shall be included in all
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
13 copies or substantial portions of the Software.
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
14
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
18 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
19 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
20 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
21 SOFTWARE.
8ed8b2cfd909 Initial commit
Isaac Potoczny-Jones <ijones@syntaxpolice.org>
parents:
diff changeset
22