Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/YUBICO]: src/external/bsd/pam-u2f/dist Import Yubico's pam-u2f from http...



details:   https://anonhg.NetBSD.org/src/rev/a85dbb465c29
branches:  YUBICO
changeset: 745461:a85dbb465c29
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 03 00:18:44 2020 +0000

description:
Import Yubico's pam-u2f from https://github.com/Yubico/pam-u2f.git

diffstat:

 external/bsd/pam-u2f/dist/.clang-format                       |   106 +
 external/bsd/pam-u2f/dist/.travis.yml                         |   253 ++
 external/bsd/pam-u2f/dist/AUTHORS                             |     1 +
 external/bsd/pam-u2f/dist/COPYING                             |    26 +
 external/bsd/pam-u2f/dist/Makefile.am                         |    76 +
 external/bsd/pam-u2f/dist/NEWS                                |    48 +
 external/bsd/pam-u2f/dist/README                              |   272 ++
 external/bsd/pam-u2f/dist/autogen.sh                          |    12 +
 external/bsd/pam-u2f/dist/b64.c                               |   108 +
 external/bsd/pam-u2f/dist/b64.h                               |    11 +
 external/bsd/pam-u2f/dist/build-aux/ci/build-bionic-clang7.sh |     6 +
 external/bsd/pam-u2f/dist/build-aux/ci/build-bionic-clang8.sh |     6 +
 external/bsd/pam-u2f/dist/build-aux/ci/build-bionic-gcc7.sh   |    10 +
 external/bsd/pam-u2f/dist/build-aux/ci/build-bionic-gcc8.sh   |     6 +
 external/bsd/pam-u2f/dist/build-aux/ci/build-bionic-gcc9.sh   |     6 +
 external/bsd/pam-u2f/dist/build-aux/ci/build-linux.sh         |    10 +
 external/bsd/pam-u2f/dist/build-aux/ci/build-osx.sh           |    30 +
 external/bsd/pam-u2f/dist/build-aux/ci/build-osx11-clang.sh   |     6 +
 external/bsd/pam-u2f/dist/build-aux/ci/build-osx9.4-clang.sh  |     6 +
 external/bsd/pam-u2f/dist/build-aux/ci/build-xenial-clang7.sh |     6 +
 external/bsd/pam-u2f/dist/build-aux/ci/build-xenial-clang8.sh |     6 +
 external/bsd/pam-u2f/dist/build-aux/ci/build-xenial-gcc7.sh   |     6 +
 external/bsd/pam-u2f/dist/build-aux/ci/build-xenial-gcc8.sh   |     6 +
 external/bsd/pam-u2f/dist/build-aux/ci/build-xenial-gcc9.sh   |     6 +
 external/bsd/pam-u2f/dist/build-aux/ci/format-code.sh         |    38 +
 external/bsd/pam-u2f/dist/configure.ac                        |   114 +
 external/bsd/pam-u2f/dist/drop_privs.c                        |   131 +
 external/bsd/pam-u2f/dist/drop_privs.h                        |    66 +
 external/bsd/pam-u2f/dist/explicit_bzero.c                    |    53 +
 external/bsd/pam-u2f/dist/m4/ax_check_compile_flag.m4         |    73 +
 external/bsd/pam-u2f/dist/m4/lib-ld.m4                        |   110 +
 external/bsd/pam-u2f/dist/m4/lib-link.m4                      |   758 ++++++
 external/bsd/pam-u2f/dist/m4/lib-prefix.m4                    |   221 +
 external/bsd/pam-u2f/dist/man/pam_u2f.8.txt                   |   142 +
 external/bsd/pam-u2f/dist/man/pamu2fcfg.1.txt                 |    60 +
 external/bsd/pam-u2f/dist/pam-u2f.c                           |   472 +++
 external/bsd/pam-u2f/dist/pamu2fcfg/Makefile.am               |    31 +
 external/bsd/pam-u2f/dist/pamu2fcfg/_readpassphrase.h         |    42 +
 external/bsd/pam-u2f/dist/pamu2fcfg/cmdline.ggo               |    18 +
 external/bsd/pam-u2f/dist/pamu2fcfg/pamu2fcfg.c               |   347 ++
 external/bsd/pam-u2f/dist/pamu2fcfg/readpassphrase.c          |   214 +
 external/bsd/pam-u2f/dist/tests/Makefile.am                   |    12 +
 external/bsd/pam-u2f/dist/tests/basic.c                       |    30 +
 external/bsd/pam-u2f/dist/tests/bionic/Dockerfile             |    15 +
 external/bsd/pam-u2f/dist/tests/bionic/README                 |    18 +
 external/bsd/pam-u2f/dist/tests/bionic/run.sh                 |    63 +
 external/bsd/pam-u2f/dist/util.c                              |  1202 ++++++++++
 external/bsd/pam-u2f/dist/util.h                              |    80 +
 48 files changed, 5339 insertions(+), 0 deletions(-)

diffs (truncated from 5531 to 300 lines):

diff -r d5abca688d38 -r a85dbb465c29 external/bsd/pam-u2f/dist/.clang-format
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/pam-u2f/dist/.clang-format   Tue Mar 03 00:18:44 2020 +0000
@@ -0,0 +1,106 @@
+---
+Language:        Cpp
+AccessModifierOffset: -2
+AlignAfterOpenBracket: Align
+AlignConsecutiveAssignments: false
+AlignConsecutiveDeclarations: false
+AlignEscapedNewlines: Right
+AlignOperands:   true
+AlignTrailingComments: true
+AllowAllParametersOfDeclarationOnNextLine: true
+AllowShortBlocksOnASingleLine: false
+AllowShortCaseLabelsOnASingleLine: false
+AllowShortFunctionsOnASingleLine: All
+AllowShortIfStatementsOnASingleLine: false
+AllowShortLoopsOnASingleLine: false
+AlwaysBreakAfterDefinitionReturnType: None
+AlwaysBreakAfterReturnType: None
+AlwaysBreakBeforeMultilineStrings: false
+AlwaysBreakTemplateDeclarations: false
+BinPackArguments: true
+BinPackParameters: true
+BraceWrapping:
+  AfterClass:      false
+  AfterControlStatement: false
+  AfterEnum:       false
+  AfterFunction:   false
+  AfterNamespace:  false
+  AfterObjCDeclaration: false
+  AfterStruct:     false
+  AfterUnion:      false
+  BeforeCatch:     false
+  BeforeElse:      false
+  IndentBraces:    false
+  SplitEmptyFunction: true
+  SplitEmptyRecord: true
+  SplitEmptyNamespace: true
+BreakBeforeBinaryOperators: None
+BreakBeforeBraces: Attach
+BreakBeforeInheritanceComma: false
+BreakBeforeTernaryOperators: true
+BreakConstructorInitializersBeforeComma: false
+BreakConstructorInitializers: BeforeColon
+BreakAfterJavaFieldAnnotations: false
+BreakStringLiterals: true
+ColumnLimit:     80
+CommentPragmas:  '^ IWYU pragma:'
+CompactNamespaces: false
+ConstructorInitializerAllOnOneLineOrOnePerLine: false
+ConstructorInitializerIndentWidth: 2
+ContinuationIndentWidth: 2
+Cpp11BracedListStyle: true
+DerivePointerAlignment: false
+DisableFormat:   false
+ExperimentalAutoDetectBinPacking: false
+FixNamespaceComments: true
+ForEachMacros:
+  - foreach
+  - Q_FOREACH
+  - BOOST_FOREACH
+IncludeCategories:
+  - Regex:           '^"(llvm|llvm-c|clang|clang-c)/'
+    Priority:        2
+  - Regex:           '^(<|"(gtest|isl|json)/)'
+    Priority:        3
+  - Regex:           '.*'
+    Priority:        1
+IncludeIsMainRegex: '(Test)?$'
+IndentCaseLabels: true
+IndentWidth:     2
+IndentWrappedFunctionNames: false
+JavaScriptQuotes: Leave
+JavaScriptWrapImports: true
+KeepEmptyLinesAtTheStartOfBlocks: true
+MacroBlockBegin: ''
+MacroBlockEnd:   ''
+MaxEmptyLinesToKeep: 1
+NamespaceIndentation: None
+ObjCBlockIndentWidth: 2
+ObjCSpaceAfterProperty: false
+ObjCSpaceBeforeProtocolList: true
+PenaltyBreakAssignment: 2
+PenaltyBreakBeforeFirstCallParameter: 1000
+PenaltyBreakComment: 300
+PenaltyBreakFirstLessLess: 120
+PenaltyBreakString: 1000
+PenaltyExcessCharacter: 1000000
+PenaltyReturnTypeOnItsOwnLine: 60
+PointerAlignment: Right
+ReflowComments:  true
+SortIncludes:    false
+SortUsingDeclarations: true
+SpaceAfterCStyleCast: true
+SpaceAfterTemplateKeyword: true
+SpaceBeforeAssignmentOperators: true
+SpaceBeforeParens: ControlStatements
+SpaceInEmptyParentheses: false
+SpacesBeforeTrailingComments: 1
+SpacesInAngles:  false
+SpacesInContainerLiterals: true
+SpacesInCStyleCastParentheses: false
+SpacesInParentheses: false
+SpacesInSquareBrackets: false
+Standard:        Cpp11
+TabWidth:        8
+UseTab:          Never
+...
diff -r d5abca688d38 -r a85dbb465c29 external/bsd/pam-u2f/dist/.travis.yml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/pam-u2f/dist/.travis.yml     Tue Mar 03 00:18:44 2020 +0000
@@ -0,0 +1,253 @@
+language: c
+
+matrix:
+  include:
+    - name: Xenial gcc-7
+      os: linux
+      compiler: gcc-7
+      dist: xenial
+      addons:
+        apt:
+          sources:
+            - sourceline: 'ppa:yubico/stable'
+            - ubuntu-toolchain-r-test
+          packages:
+            - autoconf
+            - check
+            - gcc-7
+            - gengetopt
+            - help2man
+            - libfido2-dev
+            - libpam-dev
+            - libssl-dev
+            - libtool
+            - pkg-config
+      script: ./build-aux/ci/build-xenial-gcc7.sh
+    - name: Xenial gcc-8
+      os: linux
+      compiler: gcc-8
+      dist: xenial
+      addons:
+        apt:
+          sources:
+            - sourceline: 'ppa:yubico/stable'
+            - ubuntu-toolchain-r-test
+          packages:
+            - autoconf
+            - check
+            - gcc-8
+            - gengetopt
+            - help2man
+            - libfido2-dev
+            - libpam-dev
+            - libssl-dev
+            - libtool
+            - pkg-config
+      script: ./build-aux/ci/build-xenial-gcc8.sh
+    - name: Xenial gcc-9
+      os: linux
+      compiler: gcc-9
+      dist: xenial
+      addons:
+        apt:
+          sources:
+            - sourceline: 'ppa:yubico/stable'
+            - ubuntu-toolchain-r-test
+          packages:
+            - autoconf
+            - check
+            - gcc-9
+            - gengetopt
+            - help2man
+            - libfido2-dev
+            - libpam-dev
+            - libssl-dev
+            - libtool
+            - pkg-config
+      script: ./build-aux/ci/build-xenial-gcc9.sh
+    - name: Xenial clang-7
+      os: linux
+      compiler: clang-7
+      dist: xenial
+      addons:
+        apt:
+          sources:
+            - sourceline: 'ppa:yubico/stable'
+            - ubuntu-toolchain-r-test
+            - llvm-toolchain-xenial-7
+          packages:
+            - autoconf
+            - check
+            - clang-7
+            - gengetopt
+            - help2man
+            - libfido2-dev
+            - libpam-dev
+            - libssl-dev
+            - libtool
+            - pkg-config
+      script: ./build-aux/ci/build-xenial-clang7.sh
+    - name: Xenial clang-8
+      os: linux
+      compiler: clang-8
+      dist: xenial
+      addons:
+        apt:
+          sources:
+            - sourceline: 'ppa:yubico/stable'
+            - ubuntu-toolchain-r-test
+            - llvm-toolchain-xenial-8
+          packages:
+            - autoconf
+            - check
+            - clang-8
+            - gengetopt
+            - help2man
+            - libfido2-dev
+            - libpam-dev
+            - libssl-dev
+            - libtool
+            - pkg-config
+      script: ./build-aux/ci/build-xenial-clang8.sh
+    - name: Bionic gcc-7 and clang-format
+      os: linux
+      compiler: gcc-7
+      dist: bionic
+      addons:
+        apt:
+          sources:
+            - sourceline: 'ppa:yubico/stable'
+            - ubuntu-toolchain-r-test
+          packages:
+            - autoconf
+            - check
+            - clang-format-6.0
+            - gcc-7
+            - gengetopt
+            - help2man
+            - libfido2-dev
+            - libpam-dev
+            - libssl-dev
+            - libtool
+            - pkg-config
+      script: ./build-aux/ci/build-bionic-gcc7.sh
+    - name: Bionic gcc-8
+      os: linux
+      compiler: gcc-8
+      dist: bionic
+      addons:
+        apt:
+          sources:
+            - sourceline: 'ppa:yubico/stable'
+            - ubuntu-toolchain-r-test
+          packages:
+            - autoconf
+            - check
+            - gcc-8
+            - gengetopt
+            - help2man
+            - libfido2-dev
+            - libpam-dev
+            - libssl-dev
+            - libtool
+            - pkg-config
+      script: ./build-aux/ci/build-bionic-gcc8.sh
+    - name: Bionic gcc-9
+      os: linux
+      compiler: gcc-9
+      dist: bionic
+      addons:
+        apt:
+          sources:
+            - sourceline: 'ppa:yubico/stable'
+            - sourceline: 'ppa:ubuntu-toolchain-r/test'
+          packages:
+            - autoconf
+            - check
+            - gcc-9
+            - gengetopt
+            - help2man
+            - libfido2-dev
+            - libpam-dev
+            - libssl-dev
+            - libtool
+            - pkg-config
+      script: ./build-aux/ci/build-bionic-gcc9.sh
+    - name: Bionic clang-7
+      os: linux
+      compiler: clang-7
+      dist: bionic
+      addons:
+        apt:
+          sources:
+            - sourceline: 'ppa:yubico/stable'
+            - sourceline: 'ppa:ubuntu-toolchain-r/test'
+            - sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-7 main'
+              key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'



Home | Main Index | Thread Index | Old Index