Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/libfido2/dist Import Yubico's libfido2 from htt...



details:   https://anonhg.NetBSD.org/src/rev/317cd2edd5c5
branches:  trunk
changeset: 969828:317cd2edd5c5
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 03 00:11:43 2020 +0000

description:
Import Yubico's libfido2 from https://github.com/Yubico/libfido2.git

diffstat:

 external/bsd/libfido2/dist/.github/workflows/scan.yml            |    36 +
 external/bsd/libfido2/dist/.github/workflows/windows.yml         |    14 +
 external/bsd/libfido2/dist/.travis.yml                           |    86 +
 external/bsd/libfido2/dist/.travis/build-linux-clang             |    22 +
 external/bsd/libfido2/dist/.travis/build-linux-gcc               |    19 +
 external/bsd/libfido2/dist/.travis/build-linux-mingw             |    47 +
 external/bsd/libfido2/dist/.travis/build-osx-clang               |    24 +
 external/bsd/libfido2/dist/.travis/fuzz-linux-asan               |    58 +
 external/bsd/libfido2/dist/.travis/fuzz-linux-msan               |    58 +
 external/bsd/libfido2/dist/CMakeLists.txt                        |   429 ++
 external/bsd/libfido2/dist/LICENSE                               |    24 +
 external/bsd/libfido2/dist/NEWS                                  |    77 +
 external/bsd/libfido2/dist/README.adoc                           |    73 +
 external/bsd/libfido2/dist/debian/changelog                      |    80 +
 external/bsd/libfido2/dist/debian/compat                         |     1 +
 external/bsd/libfido2/dist/debian/control                        |    53 +
 external/bsd/libfido2/dist/debian/copyright                      |    85 +
 external/bsd/libfido2/dist/debian/fido2-tools.install            |     1 +
 external/bsd/libfido2/dist/debian/fido2-tools.manpages           |     3 +
 external/bsd/libfido2/dist/debian/libfido2-1.install             |     1 +
 external/bsd/libfido2/dist/debian/libfido2-1.symbols             |   148 +
 external/bsd/libfido2/dist/debian/libfido2-dev.install           |    29 +
 external/bsd/libfido2/dist/debian/libfido2-dev.links             |   276 +
 external/bsd/libfido2/dist/debian/libfido2-dev.manpages          |    25 +
 external/bsd/libfido2/dist/debian/libfido2-udev.install          |     1 +
 external/bsd/libfido2/dist/debian/rules                          |     9 +
 external/bsd/libfido2/dist/debian/source/format                  |     1 +
 external/bsd/libfido2/dist/docker/bionic/Dockerfile              |    14 +
 external/bsd/libfido2/dist/examples/CMakeLists.txt               |    44 +
 external/bsd/libfido2/dist/examples/README.adoc                  |    81 +
 external/bsd/libfido2/dist/examples/assert.c                     |   329 ++
 external/bsd/libfido2/dist/examples/cred.c                       |   329 ++
 external/bsd/libfido2/dist/examples/extern.h                     |    32 +
 external/bsd/libfido2/dist/examples/info.c                       |   216 +
 external/bsd/libfido2/dist/examples/manifest.c                   |    45 +
 external/bsd/libfido2/dist/examples/reset.c                      |    64 +
 external/bsd/libfido2/dist/examples/retries.c                    |    52 +
 external/bsd/libfido2/dist/examples/setpin.c                     |    59 +
 external/bsd/libfido2/dist/examples/util.c                       |   415 ++
 external/bsd/libfido2/dist/fuzz/CMakeLists.txt                   |    42 +
 external/bsd/libfido2/dist/fuzz/Dockerfile                       |    10 +
 external/bsd/libfido2/dist/fuzz/Makefile                         |    78 +
 external/bsd/libfido2/dist/fuzz/README                           |   157 +
 external/bsd/libfido2/dist/fuzz/build-coverage                   |    27 +
 external/bsd/libfido2/dist/fuzz/corpus.tgz                       |   Bin 
 external/bsd/libfido2/dist/fuzz/dummy.h                          |    94 +
 external/bsd/libfido2/dist/fuzz/export.gnu                       |   188 +
 external/bsd/libfido2/dist/fuzz/functions.txt                    |   575 +++
 external/bsd/libfido2/dist/fuzz/fuzz_assert.c                    |   467 ++
 external/bsd/libfido2/dist/fuzz/fuzz_bio.c                       |   435 ++
 external/bsd/libfido2/dist/fuzz/fuzz_cred.c                      |   397 ++
 external/bsd/libfido2/dist/fuzz/fuzz_credman.c                   |   379 ++
 external/bsd/libfido2/dist/fuzz/fuzz_mgmt.c                      |   367 ++
 external/bsd/libfido2/dist/fuzz/mutator_aux.c                    |   344 ++
 external/bsd/libfido2/dist/fuzz/mutator_aux.h                    |    80 +
 external/bsd/libfido2/dist/fuzz/preload-fuzz.c                   |   104 +
 external/bsd/libfido2/dist/fuzz/preload-snoop.c                  |   217 +
 external/bsd/libfido2/dist/fuzz/prng.c                           |   112 +
 external/bsd/libfido2/dist/fuzz/report.tgz                       |   Bin 
 external/bsd/libfido2/dist/fuzz/summary.txt                      |    41 +
 external/bsd/libfido2/dist/fuzz/uniform_random.c                 |    57 +
 external/bsd/libfido2/dist/fuzz/wiredata_fido2.h                 |   569 +++
 external/bsd/libfido2/dist/fuzz/wiredata_u2f.h                   |   152 +
 external/bsd/libfido2/dist/fuzz/wrap.c                           |   549 +++
 external/bsd/libfido2/dist/fuzz/wrapped.sym                      |    63 +
 external/bsd/libfido2/dist/man/CMakeLists.txt                    |   316 ++
 external/bsd/libfido2/dist/man/NOTES                             |     4 +
 external/bsd/libfido2/dist/man/dyc.css                           |    14 +
 external/bsd/libfido2/dist/man/eddsa_pk_new.3                    |   122 +
 external/bsd/libfido2/dist/man/es256_pk_new.3                    |   126 +
 external/bsd/libfido2/dist/man/fido2-assert.1                    |   220 +
 external/bsd/libfido2/dist/man/fido2-cred.1                      |   238 +
 external/bsd/libfido2/dist/man/fido2-token.1                     |   158 +
 external/bsd/libfido2/dist/man/fido_assert_allow_cred.3          |    47 +
 external/bsd/libfido2/dist/man/fido_assert_new.3                 |   190 +
 external/bsd/libfido2/dist/man/fido_assert_set_authdata.3        |   194 +
 external/bsd/libfido2/dist/man/fido_assert_verify.3              |    79 +
 external/bsd/libfido2/dist/man/fido_bio_dev_get_info.3           |   120 +
 external/bsd/libfido2/dist/man/fido_bio_enroll_new.3             |    95 +
 external/bsd/libfido2/dist/man/fido_bio_info_new.3               |    81 +
 external/bsd/libfido2/dist/man/fido_bio_template.3               |   169 +
 external/bsd/libfido2/dist/man/fido_cbor_info_new.3              |   153 +
 external/bsd/libfido2/dist/man/fido_cred_exclude.3               |    60 +
 external/bsd/libfido2/dist/man/fido_cred_new.3                   |   169 +
 external/bsd/libfido2/dist/man/fido_cred_set_authdata.3          |   263 +
 external/bsd/libfido2/dist/man/fido_cred_verify.3                |    64 +
 external/bsd/libfido2/dist/man/fido_credman_metadata_new.3       |   299 +
 external/bsd/libfido2/dist/man/fido_dev_get_assert.3             |    76 +
 external/bsd/libfido2/dist/man/fido_dev_info_manifest.3          |   143 +
 external/bsd/libfido2/dist/man/fido_dev_make_cred.3              |    77 +
 external/bsd/libfido2/dist/man/fido_dev_open.3                   |   159 +
 external/bsd/libfido2/dist/man/fido_dev_set_io_functions.3       |   152 +
 external/bsd/libfido2/dist/man/fido_dev_set_pin.3                |    88 +
 external/bsd/libfido2/dist/man/fido_init.3                       |    40 +
 external/bsd/libfido2/dist/man/fido_strerr.3                     |    27 +
 external/bsd/libfido2/dist/man/rs256_pk_new.3                    |   122 +
 external/bsd/libfido2/dist/man/style.css                         |    24 +
 external/bsd/libfido2/dist/openbsd-compat/bsd-getline.c          |   115 +
 external/bsd/libfido2/dist/openbsd-compat/bsd-getpagesize.c      |    27 +
 external/bsd/libfido2/dist/openbsd-compat/diff.sh                |    24 +
 external/bsd/libfido2/dist/openbsd-compat/err.h                  |    85 +
 external/bsd/libfido2/dist/openbsd-compat/explicit_bzero.c       |    57 +
 external/bsd/libfido2/dist/openbsd-compat/explicit_bzero_win32.c |    19 +
 external/bsd/libfido2/dist/openbsd-compat/getopt.h               |    74 +
 external/bsd/libfido2/dist/openbsd-compat/getopt_long.c          |   523 +++
 external/bsd/libfido2/dist/openbsd-compat/openbsd-compat.h       |    93 +
 external/bsd/libfido2/dist/openbsd-compat/posix_win.c            |    61 +
 external/bsd/libfido2/dist/openbsd-compat/posix_win.h            |    47 +
 external/bsd/libfido2/dist/openbsd-compat/readpassphrase.c       |   214 +
 external/bsd/libfido2/dist/openbsd-compat/readpassphrase.h       |    44 +
 external/bsd/libfido2/dist/openbsd-compat/readpassphrase_win32.c |   131 +
 external/bsd/libfido2/dist/openbsd-compat/recallocarray.c        |    91 +
 external/bsd/libfido2/dist/openbsd-compat/strlcat.c              |    63 +
 external/bsd/libfido2/dist/openbsd-compat/strlcpy.c              |    59 +
 external/bsd/libfido2/dist/openbsd-compat/timingsafe_bcmp.c      |    35 +
 external/bsd/libfido2/dist/openbsd-compat/types.h                |    71 +
 external/bsd/libfido2/dist/regress/CMakeLists.txt                |    16 +
 external/bsd/libfido2/dist/regress/assert.c                      |   515 +++
 external/bsd/libfido2/dist/regress/cred.c                        |   819 +++++
 external/bsd/libfido2/dist/regress/dev.c                         |    80 +
 external/bsd/libfido2/dist/src/CMakeLists.txt                    |   110 +
 external/bsd/libfido2/dist/src/aes256.c                          |    98 +
 external/bsd/libfido2/dist/src/assert.c                          |  1089 ++++++
 external/bsd/libfido2/dist/src/authkey.c                         |    98 +
 external/bsd/libfido2/dist/src/bio.c                             |   844 +++++
 external/bsd/libfido2/dist/src/blob.c                            |   102 +
 external/bsd/libfido2/dist/src/blob.h                            |    39 +
 external/bsd/libfido2/dist/src/buf.c                             |    34 +
 external/bsd/libfido2/dist/src/cbor.c                            |  1576 ++++++++++
 external/bsd/libfido2/dist/src/cred.c                            |  1016 ++++++
 external/bsd/libfido2/dist/src/credman.c                         |   736 ++++
 external/bsd/libfido2/dist/src/dev.c                             |   459 ++
 external/bsd/libfido2/dist/src/diff_exports.sh                   |    23 +
 external/bsd/libfido2/dist/src/ecdh.c                            |   121 +
 external/bsd/libfido2/dist/src/eddsa.c                           |   169 +
 external/bsd/libfido2/dist/src/err.c                             |   122 +
 external/bsd/libfido2/dist/src/es256.c                           |   439 ++
 external/bsd/libfido2/dist/src/export.gnu                        |   187 +
 external/bsd/libfido2/dist/src/export.llvm                       |   182 +
 external/bsd/libfido2/dist/src/export.msvc                       |   183 +
 external/bsd/libfido2/dist/src/extern.h                          |   156 +
 external/bsd/libfido2/dist/src/fido.h                            |   180 +
 external/bsd/libfido2/dist/src/fido/bio.h                        |   111 +
 external/bsd/libfido2/dist/src/fido/credman.h                    |    90 +
 external/bsd/libfido2/dist/src/fido/eddsa.h                      |    54 +
 external/bsd/libfido2/dist/src/fido/err.h                        |    77 +
 external/bsd/libfido2/dist/src/fido/es256.h                      |    48 +
 external/bsd/libfido2/dist/src/fido/param.h                      |    95 +
 external/bsd/libfido2/dist/src/fido/rs256.h                      |    36 +
 external/bsd/libfido2/dist/src/fido/types.h                      |   234 +
 external/bsd/libfido2/dist/src/hid.c                             |    70 +
 external/bsd/libfido2/dist/src/hid_hidapi.c                      |   138 +
 external/bsd/libfido2/dist/src/hid_linux.c                       |   350 ++
 external/bsd/libfido2/dist/src/hid_openbsd.c                     |   283 +
 external/bsd/libfido2/dist/src/hid_osx.c                         |   416 ++
 external/bsd/libfido2/dist/src/hid_win.c                         |   330 ++
 external/bsd/libfido2/dist/src/info.c                            |   409 ++
 external/bsd/libfido2/dist/src/io.c                              |   282 +
 external/bsd/libfido2/dist/src/iso7816.c                         |    70 +
 external/bsd/libfido2/dist/src/iso7816.h                         |    49 +
 external/bsd/libfido2/dist/src/libfido2.pc.in                    |    12 +
 external/bsd/libfido2/dist/src/log.c                             |    92 +
 external/bsd/libfido2/dist/src/packed.h                          |    22 +
 external/bsd/libfido2/dist/src/pin.c                             |   526 +++
 external/bsd/libfido2/dist/src/reset.c                           |    39 +
 external/bsd/libfido2/dist/src/rs256.c                           |   204 +
 external/bsd/libfido2/dist/src/u2f.c                             |   771 ++++
 external/bsd/libfido2/dist/tools/CMakeLists.txt                  |    57 +
 external/bsd/libfido2/dist/tools/assert_get.c                    |   233 +
 external/bsd/libfido2/dist/tools/assert_verify.c                 |   201 +
 external/bsd/libfido2/dist/tools/base64.c                        |   135 +
 external/bsd/libfido2/dist/tools/bio.c                           |   269 +
 external/bsd/libfido2/dist/tools/cred_make.c                     |   221 +
 external/bsd/libfido2/dist/tools/cred_verify.c                   |   177 +
 external/bsd/libfido2/dist/tools/credman.c                       |   237 +
 external/bsd/libfido2/dist/tools/extern.h                        |    70 +
 external/bsd/libfido2/dist/tools/fido2-assert.c                  |    54 +
 external/bsd/libfido2/dist/tools/fido2-cred.c                    |    52 +
 external/bsd/libfido2/dist/tools/fido2-token.c                   |    95 +
 external/bsd/libfido2/dist/tools/include_check.sh                |    21 +
 external/bsd/libfido2/dist/tools/macos_pkg.sh                    |    44 +
 external/bsd/libfido2/dist/tools/pin.c                           |   146 +
 external/bsd/libfido2/dist/tools/test.sh                         |    96 +
 external/bsd/libfido2/dist/tools/token.c                         |   364 ++
 external/bsd/libfido2/dist/tools/util.c                          |   364 ++
 external/bsd/libfido2/dist/udev/70-u2f.rules                     |    75 +
 external/bsd/libfido2/dist/udev/CMakeLists.txt                   |     7 +
 external/bsd/libfido2/dist/windows/build.ps1                     |   204 +
 external/bsd/libfido2/dist/windows/libressl.gpg                  |   Bin 
 189 files changed, 32109 insertions(+), 0 deletions(-)

diffs (truncated from 32859 to 300 lines):

diff -r 82b92dad6616 -r 317cd2edd5c5 external/bsd/libfido2/dist/.github/workflows/scan.yml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libfido2/dist/.github/workflows/scan.yml     Tue Mar 03 00:11:43 2020 +0000
@@ -0,0 +1,36 @@
+name: static code analysis
+
+on:
+  push:
+  schedule:
+    - cron: '0 0 * * 1'
+
+env:
+  SCAN_IMG:
+    yes-docker-local.artifactory.in.yubico.org/static-code-analysis/c:v1
+  SECRET: ${{ secrets.ARTIFACTORY_READER_TOKEN }}
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@master
+
+    - name: Scan but do not fail on warnings
+      run: |
+        if [ "${SECRET}" != "" ]; then
+          docker login yes-docker-local.artifactory.in.yubico.org/ \
+             -u svc-static-code-analysis-reader \
+             -p ${{ secrets.ARTIFACTORY_READER_TOKEN }}
+          docker pull ${SCAN_IMG}
+          docker run -v${PWD}:/k -e COMPILE_DEPS="${COMPILE_DEPS}" \
+             -e PROJECT_NAME=${GITHUB_REPOSITORY#Yubico/} -t ${SCAN_IMG}
+        fi
+      continue-on-error: true
+
+    - uses: actions/upload-artifact@master
+      if: failure()
+      with:
+        name: suppression_files
+        path: suppression_files
diff -r 82b92dad6616 -r 317cd2edd5c5 external/bsd/libfido2/dist/.github/workflows/windows.yml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libfido2/dist/.github/workflows/windows.yml  Tue Mar 03 00:11:43 2020 +0000
@@ -0,0 +1,14 @@
+name: windows
+
+on: [push]
+
+jobs:
+  build:
+
+    runs-on: windows-latest
+
+    steps:
+    - uses: actions/checkout@v1
+    - name: build
+      run: .\windows\build.ps1
+
diff -r 82b92dad6616 -r 317cd2edd5c5 external/bsd/libfido2/dist/.travis.yml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libfido2/dist/.travis.yml    Tue Mar 03 00:11:43 2020 +0000
@@ -0,0 +1,86 @@
+language: c
+
+matrix:
+  include:
+    - os: linux
+      compiler: clang-7
+      dist: xenial
+      sudo: required
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+            - llvm-toolchain-xenial-7
+          packages:
+            - clang-7
+            - cmake
+            - libssl-dev
+            - libudev-dev
+      script: /bin/sh -eux .travis/build-linux-clang
+    - os: linux
+      compiler: gcc-7
+      dist: xenial
+      sudo: required
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+          packages:
+            - gcc-7
+            - cmake
+            - libssl-dev
+            - libudev-dev
+      script: /bin/sh -eux .travis/build-linux-gcc
+    - os: linux
+      compiler: i686-w64-mingw32-gcc-4.8
+      dist: xenial
+      sudo: required
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+          packages:
+            - binutils-mingw-w64-i686
+            - gcc-mingw-w64
+            - g++-mingw-w64
+            - mingw-w64-i686-dev
+            - cmake
+      script: /bin/sh -eux .travis/build-linux-mingw
+    - os: osx
+      osx_image: xcode10.2
+      compiler: clang
+      sudo: required
+      script: /bin/sh -eux .travis/build-osx-clang
+    - os: linux
+      compiler: clang-7
+      dist: bionic
+      sudo: required
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+            - llvm-toolchain-xenial-7
+          packages:
+            - clang-7
+            - cmake
+            - libssl-dev
+            - libudev-dev
+      script: /bin/sh -eux .travis/fuzz-linux-asan
+    - os: linux
+      compiler: clang-7
+      dist: bionic
+      sudo: required
+      addons:
+        apt:
+          sources:
+            - ubuntu-toolchain-r-test
+            - llvm-toolchain-xenial-7
+          packages:
+            - clang-7
+            - cmake
+            - libssl-dev
+            - libudev-dev
+      script: /bin/sh -eux .travis/fuzz-linux-msan
+
+notifications:
+  email: false
diff -r 82b92dad6616 -r 317cd2edd5c5 external/bsd/libfido2/dist/.travis/build-linux-clang
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libfido2/dist/.travis/build-linux-clang      Tue Mar 03 00:11:43 2020 +0000
@@ -0,0 +1,22 @@
+#!/bin/sh -eux
+
+${CC} --version
+
+# Check exports.
+(cd src && ./diff_exports.sh)
+
+# Build and install libcbor.
+git clone git://github.com/pjk/libcbor
+cd libcbor
+git checkout v0.5.0
+mkdir build
+(cd build && cmake ..)
+make -C build
+sudo make -C build install
+cd ..
+
+# Build, analyze, and install libfido2.
+mkdir build
+(cd build && scan-build cmake -DCMAKE_BUILD_TYPE=Debug ..)
+scan-build --status-bugs make -C build
+sudo make -C build install
diff -r 82b92dad6616 -r 317cd2edd5c5 external/bsd/libfido2/dist/.travis/build-linux-gcc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libfido2/dist/.travis/build-linux-gcc        Tue Mar 03 00:11:43 2020 +0000
@@ -0,0 +1,19 @@
+#!/bin/sh -eux
+
+${CC} --version
+
+# Build and install libcbor.
+git clone git://github.com/pjk/libcbor
+cd libcbor
+git checkout v0.5.0
+mkdir build
+(cd build && cmake ..)
+make -C build
+sudo make -C build install
+cd ..
+
+# Build and install libfido2.
+mkdir build
+(cd build && cmake -DCMAKE_BUILD_TYPE=Debug ..)
+make -C build
+sudo make -C build install
diff -r 82b92dad6616 -r 317cd2edd5c5 external/bsd/libfido2/dist/.travis/build-linux-mingw
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libfido2/dist/.travis/build-linux-mingw      Tue Mar 03 00:11:43 2020 +0000
@@ -0,0 +1,47 @@
+#!/bin/sh -eux
+
+# XXX defining CC and cross-compiling confuses OpenSSL's build.
+unset CC
+
+sudo mkdir /fakeroot
+sudo chmod 755 /fakeroot
+
+cat << EOF > /tmp/mingw.cmake
+SET(CMAKE_SYSTEM_NAME Windows)
+SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
+SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
+SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
+SET(CMAKE_FIND_ROOT_PATH /fakeroot)
+SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+EOF
+
+# Build and install libcbor.
+git clone git://github.com/pjk/libcbor
+cd libcbor
+git checkout v0.5.0
+mkdir build
+(cd build && cmake -DCMAKE_TOOLCHAIN_FILE=/tmp/mingw.cmake \
+       -DCMAKE_INSTALL_PREFIX=/fakeroot ..)
+make -C build
+sudo make -C build install
+cd ..
+
+# Build and install OpenSSL 1.1.0j.
+git clone git://github.com/openssl/openssl
+cd openssl
+git checkout OpenSSL_1_1_0j
+./Configure mingw --prefix=/fakeroot --openssldir=/fakeroot/openssl \
+       --cross-compile-prefix=i686-w64-mingw32-
+make
+sudo make install_sw
+cd ..
+
+# Build and install libfido2.
+export PKG_CONFIG_PATH=/fakeroot/lib/pkgconfig
+mkdir build
+(cd build && cmake -DCMAKE_TOOLCHAIN_FILE=/tmp/mingw.cmake \
+       -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/fakeroot ..)
+make -C build
+sudo make -C build install
diff -r 82b92dad6616 -r 317cd2edd5c5 external/bsd/libfido2/dist/.travis/build-osx-clang
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libfido2/dist/.travis/build-osx-clang        Tue Mar 03 00:11:43 2020 +0000
@@ -0,0 +1,24 @@
+#!/bin/sh -eux
+
+${CC} --version
+
+# Build and install libcbor.
+git clone git://github.com/pjk/libcbor
+cd libcbor
+git checkout v0.5.0
+mkdir build
+(cd build && cmake ..)
+make -C build
+sudo make -C build install
+cd ..
+
+# Install mandoc from Homebrew.
+brew install mandoc
+
+# Build and install libfido2.
+export PKG_CONFIG_PATH=/usr/local/opt/openssl@1.1/lib/pkgconfig
+mkdir build
+(cd build && cmake -DCMAKE_BUILD_TYPE=Debug ..)
+make -C build
+make -C build man_symlink_html
+sudo make -C build install
diff -r 82b92dad6616 -r 317cd2edd5c5 external/bsd/libfido2/dist/.travis/fuzz-linux-asan
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/libfido2/dist/.travis/fuzz-linux-asan        Tue Mar 03 00:11:43 2020 +0000
@@ -0,0 +1,58 @@
+#!/bin/sh -eux
+
+${CC} --version
+
+FAKEROOT=/fakeroot
+sudo mkdir ${FAKEROOT}
+sudo chmod 755 ${FAKEROOT}
+
+# Build and install libcbor.
+git clone git://github.com/pjk/libcbor
+cd libcbor
+patch -p0 < ../fuzz/README
+mkdir build
+cd build
+cmake -DCMAKE_C_FLAGS_DEBUG="-g2 -fno-omit-frame-pointer" \
+       -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=Debug \
+       -DCMAKE_INSTALL_PREFIX=${FAKEROOT} -DSANITIZE=ON \
+       -DCMAKE_INSTALL_LIBDIR=lib ..
+make
+sudo make install



Home | Main Index | Thread Index | Old Index