Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from libressl-portable:master #18

Open
wants to merge 1,038 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1038 commits
Select commit Hold shift + click to select a range
a826268
Update ChangeLog
botovq Apr 9, 2024
5298207
ChangeLog: add a couple of missing periods
botovq Apr 9, 2024
4a9c334
Add hidden evp.h and conf.h
botovq Apr 9, 2024
ff2d4b6
Link bn_bits to regress
botovq Apr 9, 2024
f87d891
Update ChangeLog
botovq Apr 9, 2024
8ce9710
[Windows] Mark old_report_mode as unused
RandomInEqualities Apr 1, 2024
13d2bf1
Tweak ChangeLog
botovq Apr 11, 2024
2e6ce7b
Rebase crypto_namespace.h.patch
botovq Apr 11, 2024
64e0f7c
Unhook o_str.c
botovq Apr 16, 2024
b1b4914
Update ChangeLog
botovq Apr 17, 2024
a8bd03a
pem2.h headed to the bit bucket
botovq Apr 25, 2024
d0221da
link crypto_test to the build
botovq Apr 25, 2024
84d355b
Update man links
botovq Apr 25, 2024
5774559
Update ChangeLog
botovq Apr 29, 2024
79a40fc
Update man links
botovq Apr 30, 2024
08eefd1
Add libtool for cmake_config CI
botovq Apr 30, 2024
0dad7d8
Land #1051 - add libtool for cmake config on macos
botovq Apr 30, 2024
410e176
Update ChangeLog
botovq May 4, 2024
3f0218f
Update ChangeLog
botovq May 6, 2024
1892ae7
Link lhash_test to build
botovq May 6, 2024
1a424b3
Update ChangeLog
botovq May 8, 2024
cbacfb4
Update ChangeLog
botovq May 9, 2024
2b57096
Update ChangeLog
botovq May 11, 2024
fa24a41
Update man links
botovq May 13, 2024
f4018bc
CI: introduce Ubuntu 24.04
chipitsine May 17, 2024
7005b78
Land #1054 - add ubuntu 24.04 to CI
botovq May 17, 2024
5a0c55e
Update ChangeLog
botovq May 22, 2024
53120ac
bye bye enc_writ.c
botovq May 24, 2024
f785e29
Update man links
botovq May 25, 2024
ac75aab
Remove the dist-win compilation script
RandomInEqualities Apr 9, 2024
ad6e77c
Rename README.windows to README.mingw.md
RandomInEqualities Apr 9, 2024
937a3d9
Try to simplify build instruction.
RandomInEqualities Apr 9, 2024
f9874d4
Remove timegm() compat
botovq May 25, 2024
c6c43a4
tweak ChangeLog
botovq May 25, 2024
03d54d8
Update ChangeLog
botovq May 25, 2024
7f39dda
Clean up the time_t test mess
botovq May 25, 2024
8f03828
Land #1056 - remove timegm compat
botovq May 25, 2024
1fec7be
Make RFC 5280 test xfail on 32-bit time_t systems
botovq May 26, 2024
30e6e82
Land #1057 - Make RFC 5280 tests XFAIL for small time_t
botovq May 26, 2024
0dfa4f3
Update ChangeLog
botovq May 26, 2024
1e0d453
Remove dead bitrig support, error on unsupported platforms
busterb May 28, 2024
d9c3a50
Land #1048, clarify that Windows builds are easy
busterb May 28, 2024
82d645a
Land #1046, [Windows] Mark old_report_mode as unused for release builds
busterb May 28, 2024
e8bd2e9
Link x509_extensions_test to build
botovq May 28, 2024
efebc91
ci: add event number to concurrency group
joshuasing May 29, 2024
4452181
cmake: match autoconf build in terms of HAVE_AES macros
botovq May 28, 2024
3e097f8
Land #1062 - add HAVE_AES_* to cmake
botovq May 31, 2024
729dd9f
Update ChangeLog
botovq May 31, 2024
2561239
Update ChangeLog
botovq Jun 1, 2024
714b687
Update ChangeLog
botovq Jun 1, 2024
a445294
Tweak changelog
botovq Jun 2, 2024
a279b68
distribute `compat/stdint.h`
vszakats Jun 5, 2024
3766cc7
Land #1065 - add compat/stdint.h
botovq Jun 5, 2024
46ddd6b
Land #1063 - add event number to concurrency group
botovq Jun 6, 2024
3478d5c
Add Emscripten branch to arc4random
MoustaphaSaad May 28, 2024
3835fed
disable explicit_bzero because of lack of sigsuspend support on Emscr…
MoustaphaSaad May 31, 2024
c86535d
replace add_test with add_platform_test
MoustaphaSaad May 31, 2024
34f7223
fix aeadtest
MoustaphaSaad May 31, 2024
66ef92d
disable arc4randomforktest because Emscripten lacks fork support
MoustaphaSaad May 31, 2024
50b726c
fix apitest
MoustaphaSaad May 31, 2024
3d9c9cf
fix bn_unit
MoustaphaSaad May 31, 2024
61fb99c
fix cttest
MoustaphaSaad May 31, 2024
caa700b
fix evptest
MoustaphaSaad May 31, 2024
f149fbd
fix keypairtest
MoustaphaSaad May 31, 2024
7d35c4c
fix policy
MoustaphaSaad May 31, 2024
46bcf38
fix pq_test
MoustaphaSaad May 31, 2024
e257aa8
fix quictest
MoustaphaSaad May 31, 2024
d34880c
fix servertest
MoustaphaSaad May 31, 2024
08664de
fix shutdowntest
MoustaphaSaad May 31, 2024
24ed53e
fix ssl_get_shared_ciphers
MoustaphaSaad May 31, 2024
eab5ace
fix ssltest
MoustaphaSaad May 31, 2024
bf42944
disable testdsa
MoustaphaSaad May 31, 2024
d70a51a
disable testenc
MoustaphaSaad May 31, 2024
56007f8
disable testrsa
MoustaphaSaad May 31, 2024
08d0f58
disable tlstest
MoustaphaSaad May 31, 2024
64d11fc
add initial Emscripten CI workflow
MoustaphaSaad May 31, 2024
165582f
wrap bn_unit ALLOW_MEMORY_GROWTH in if(EMSCRIPTEN)
MoustaphaSaad Jun 1, 2024
c7a7dbd
use emcmake instead of feeding toolchain file manually
MoustaphaSaad Jun 4, 2024
d661f77
simplify explicit_bzero comment
MoustaphaSaad Jun 7, 2024
6f37c93
fix emscripten.yml workflow
MoustaphaSaad Jun 7, 2024
075c0a0
replace if(EMSCRIPTEN) with prepare_emscripten_test_target function
MoustaphaSaad Jun 7, 2024
f788dea
use -gsource-map instead of -ggdb
MoustaphaSaad Jun 7, 2024
30e571f
group testdsa, testenc, and testrsa under a single if(NOT EMSCRIPTEN)
MoustaphaSaad Jun 7, 2024
1b4bf24
call prepare_emscripten_test_target for x509_asn1 to fix an OOM error
MoustaphaSaad Jun 7, 2024
71e574a
use compat implementations of strlcpy and strlcat
MoustaphaSaad Jun 10, 2024
a949ecf
Fix comment in emscripten.yml
MoustaphaSaad Jun 16, 2024
683f523
grammar tweak
botovq Jun 19, 2024
809e066
Update ChangeLog
botovq Jun 19, 2024
7f2c181
Update ChangeLog
botovq Jun 19, 2024
968290c
add Emscripten to compatible operating systems list
MoustaphaSaad Jun 20, 2024
c231e3b
add note about using emcmake with Emscripten in specific systems section
MoustaphaSaad Jun 20, 2024
4269c45
Merge #1067 - Emscripten configuration note
botovq Jun 20, 2024
79329e9
Update ChangeLog
botovq Jun 22, 2024
c5ff2da
Link err_local.h to build
botovq Jun 24, 2024
62e28ea
Update ChangeLog
botovq Jun 24, 2024
b089753
Update ChangeLog
botovq Jun 25, 2024
48b357c
Need to pass crypto/err to -I
botovq Jun 25, 2024
57a4289
reach from ssl into crypto for crypto_internal.h
botovq Jun 25, 2024
56d32d0
Update ChangeLog
botovq Jun 28, 2024
050b6de
spkac.c is no more
botovq Jul 8, 2024
c4ec5db
Update ChangeLog
botovq Jul 8, 2024
6367ad1
Update ChangeLog
botovq Jul 9, 2024
b26d6bf
Update ChangeLog
botovq Jul 9, 2024
1e162d4
Add tls1_prf.c to build
botovq Jul 9, 2024
3d895bd
tls1_prf is in kdf/, not in hkdf/
botovq Jul 9, 2024
3b5f017
include/CMakeLists.txt: error out when architecture is not supported
tpetazzoni Jul 13, 2024
40d85d8
Update ChangeLog
botovq Jul 13, 2024
2eb32c2
speed.c is likely broken on Windows, so add a hack
botovq Jul 13, 2024
9a4c02f
Simplify speed.c diff
botovq Jul 13, 2024
60d65be
ssl2.h and ssl23.h are gone
botovq Jul 13, 2024
b36b224
Update ChangeLog
botovq Jul 13, 2024
c8ca894
lhash_local.h was removed
botovq Jul 14, 2024
1796edd
land #1070 - error on unsupported arch for cmake
botovq Jul 17, 2024
6f4668b
Update ChangeLog
botovq Jul 18, 2024
e6c7de3
CMakeLists.txt: Fix HOST variable for ppc64
OPNA2608 Jul 19, 2024
11884c4
Land #1073 - Fix HOST_POWERPC64 for CMake
botovq Jul 19, 2024
9c5c0c8
reenable clienttest
botovq Jul 20, 2024
4911bd3
Update ChangeLog
botovq Jul 21, 2024
a94f45b
Update ChangeLog
botovq Jul 23, 2024
becbdfb
Update CMakeLists.txt
rfl890 Aug 2, 2024
15451af
ex_data is now implemented in crypto_ex_data.c
botovq Aug 2, 2024
73ba2f0
Update ChangeLog
botovq Aug 2, 2024
161984f
Use check_symbol_exists() rather than check_function_exists()
botovq Aug 2, 2024
c05b84c
Silly ChangeLog entry to trigger CI
botovq Aug 2, 2024
cd0ae0e
Update ChangeLog
botovq Aug 2, 2024
b1bc704
Merge branch 'libressl:master' into patch-1
rfl890 Aug 2, 2024
50e2e2f
Tweak previous ChangeLog entry
botovq Aug 2, 2024
e99a7dd
Merge b1bc704474059c8a36149a63c02749501b9a3cea into 50e2e2ff63b1754e5…
rfl890 Aug 2, 2024
58f8cd7
Land #1075 - Fix asm detection for mingw/amd64
botovq Aug 2, 2024
695bdfc
update ChangeLog
botovq Aug 3, 2024
5eb1c40
regen patches
botovq Aug 3, 2024
41ea3c7
regen man links
botovq Aug 3, 2024
16286ce
Update ChangeLog
botovq Aug 6, 2024
5c978c4
cmake: replace `CMAKE_SYSTEM_PROCESSOR` with `HOST_*`
vszakats Aug 7, 2024
ff21b13
Land #1081 - replace CMAKE_SYSTEM_PROCESSOR with HOST_*
botovq Aug 7, 2024
087a9d4
ui_compat.h was removed
botovq Aug 10, 2024
d20cd80
Update ChangeLog
botovq Aug 10, 2024
2a90725
Need to copy over crypto_arch.h
botovq Aug 6, 2024
aa83ac4
Initial cut for crypto_arch.h
botovq Aug 6, 2024
ec3abe7
And adapt libssl
botovq Aug 6, 2024
dc710c5
... and tests
botovq Aug 6, 2024
008aabb
Disable mips32 in CI for now
botovq Aug 11, 2024
9e2ff9a
Land #1080 - adjust for crypto_arch.h
botovq Aug 11, 2024
5a6539b
Update ChangeLog
botovq Aug 12, 2024
8a51362
Tweak ChangeLog
botovq Aug 12, 2024
a95f950
Tweak ChangeLog
botovq Aug 13, 2024
bc71357
Regen netcat patch
botovq Aug 17, 2024
3b545a0
regen man links
botovq Aug 17, 2024
1ff9793
Switch to check_symbol_exists() in simplest cases
botovq Aug 2, 2024
9a8d1ec
Append version to dll on CMake
ikspress Aug 21, 2024
d718a26
Fix includedir on CMake
ikspress Aug 21, 2024
935753a
Land #1085 - fix includedir
botovq Aug 21, 2024
14e8325
ci: update actions
joshuasing Aug 25, 2024
abfed94
Land #1090 - update CI actions
botovq Aug 25, 2024
0bc5780
Update ChangeLog
botovq Aug 25, 2024
f27e8fb
ChangeLog: fix grammar
botovq Aug 25, 2024
6d21506
Update ChangeLog
botovq Aug 27, 2024
8276b75
Link x509_siginfo.c to the build
botovq Aug 28, 2024
c43335e
Remove evp_pkey_check
botovq Aug 29, 2024
5ffea18
Update man links
botovq Aug 29, 2024
64f8aa3
Adjust for whirlpool removal
botovq Aug 31, 2024
b687673
conf_api.h was removed, conf_local.h was added
botovq Aug 31, 2024
4535cc0
ui_util.c was removed
botovq Aug 31, 2024
9a1decc
enc_read.c is gone
botovq Aug 31, 2024
4c19031
Update man links
botovq Aug 31, 2024
cde0e9c
Be better at grep...
botovq Aug 31, 2024
de89d89
DES met jsing. And it never looked quite the same again.
botovq Aug 31, 2024
b8a6e78
Update ChangeLog
botovq Sep 1, 2024
f4d5560
Update ChangeLog
botovq Sep 9, 2024
1e2e50e
Update man links
botovq Sep 9, 2024
663f6cf
Clean up and expand ChangeLog
botovq Sep 12, 2024
5feccf8
bump minimum CMake version for DLL_NAME_WITH_SOVERSION
busterb Oct 1, 2024
5b8d17b
properly specify define for shared libraries
busterb Oct 1, 2024
c04ca24
Land #1084, Append version to dll on CMake
busterb Oct 1, 2024
c169d7e
Land #1079, Switch to check_symbol_exists() for simple cases
busterb Oct 1, 2024
415eb81
Revert "bump minimum CMake version for DLL_NAME_WITH_SOVERSION"
botovq Oct 2, 2024
6a20a58
Only use DLL_NAME_WITH_SOVERSION for cmake >= 3.27
botovq Oct 2, 2024
92528bd
Land #1100 - mop up dll name breakage
botovq Oct 2, 2024
59f21d4
Fix syslog_r detection
botovq Oct 2, 2024
582d50b
Land #1101 - fix syslog_r detection
botovq Oct 2, 2024
69c26f3
fix syslog_r and pipe2 detection
botovq Oct 2, 2024
8bc62b8
Land #1102 - fix syslog_r and pipe2 detection
botovq Oct 2, 2024
47681bf
Pull if() statement out of argument list
botovq Oct 2, 2024
9a399d2
Land #1103 - fix ddl versioning on Windows
botovq Oct 2, 2024
3467d6f
Attempt to fix 2038 problem with MSVC
botovq Aug 2, 2024
0eceb61
for poll timeout -1, set loop time more reasonably
busterb Oct 6, 2024
64f15ec
use TIMEVAL typedef with select()
busterb Oct 6, 2024
bd99783
don't override language property for ASM files as C
busterb Oct 8, 2024
81c3c38
Land #1104, don't override language property for ASM files as C
busterb Oct 8, 2024
f5cc7b3
Link err_test to build
botovq Oct 8, 2024
82e9285
Land #1105 - link err_test to build
botovq Oct 8, 2024
5c23c6b
Start ChangeLog for 4.1
botovq Oct 11, 2024
3bdeded
CI: bump macos-12 to 15
botovq Oct 11, 2024
e8602bf
ChangeLog: fix typo
botovq Oct 12, 2024
3f90032
Update ChangeLog
botovq Oct 12, 2024
91658ff
Fix CMake build on FreeBSD
botovq Oct 15, 2024
d8350cf
Land #1108 - Fix CMake build for FreeBSD
botovq Oct 15, 2024
9f84dc8
Update ChangeLog
botovq Oct 14, 2024
a6a5a95
Update ChangeLog
botovq Oct 15, 2024
e783bc7
Merge ChangeLogs for 3.9.2, 3.9.1, and 3.8.4
botovq Oct 15, 2024
3f178dc
ci: add freebsd workflow
joshuasing Oct 15, 2024
574fc3d
Land #1109 - Add daily FreeBSD runner
botovq Oct 15, 2024
16c2e3c
Make gettimeofday() definition match the prototype
botovq Oct 15, 2024
0082b6f
Land #1112 - fix gettimeofday prototype mismatch
botovq Oct 15, 2024
f6dd688
sync Changelog from stable branch
busterb Oct 14, 2024
9065b29
ec_cvt.c hit the attic
botovq Oct 18, 2024
67a3b7d
conf_mall.c is no more
botovq Oct 18, 2024
697cb11
Update ChangeLog
botovq Oct 17, 2024
696c490
Hook up crypto_cpu_caps_init()
botovq Oct 18, 2024
27ec5b1
disable cpu caps on windows for now
botovq Oct 18, 2024
cca1d39
Also disable cpu caps on windows i386
botovq Oct 18, 2024
9256f9f
Hook i386 crypto_cpu_caps to build
botovq Oct 18, 2024
d418a56
Fix conditional nesting
botovq Oct 18, 2024
d2a5af6
Update ChangeLog
botovq Oct 18, 2024
7c4cb44
Remove -DWHIRLPOOL_ASM
botovq Oct 18, 2024
202386e
ec_check.c was removed
botovq Oct 19, 2024
b913944
Update ChangeLog
botovq Oct 23, 2024
4c6b98d
Tweak changelog
botovq Oct 23, 2024
4a2adf2
Missing .
botovq Oct 24, 2024
eb6aaeb
Update ChangeLog
botovq Oct 26, 2024
d219952
Tweak ChangeLog
botovq Oct 29, 2024
f9df014
Update ChangeLog
botovq Oct 29, 2024
4f20970
cmake: use `CMAKE_INSTALL_SYSCONFDIR`
vszakats Oct 29, 2024
1b2c793
Merge 4f20970ac6c0dc089b7d2a69b22afcb065fb4ff7 into f9df014f5991e243d…
vszakats Oct 29, 2024
240c669
Land #1119 - ensure cmake install honors --prefix
botovq Oct 29, 2024
3eea7a6
Update ChangeLog
botovq Oct 29, 2024
b478250
+ec_convert.c -ec_print.c
botovq Oct 30, 2024
2f680db
Assume unknown operating systems use ELF.
sortie Nov 2, 2024
c46bc4c
Update ChangeLog
botovq Nov 2, 2024
4db5917
Warn on unsupported operating systems
sortie Nov 2, 2024
03b3f78
Land #1230 - move from error to warning for unknown OS
botovq Nov 2, 2024
9b6c550
Try to fix Emscripten ASAN OOM for ec_asn1_test
botovq Nov 2, 2024
7aaf263
Land #1121 - fix ec_asn1_test for Emscripten ASAN
botovq Nov 2, 2024
66f0dba
Print uid_t portably with PRIu64.
sortie Nov 2, 2024
880ac26
Land #1122 - fix uid_t printing portability
botovq Nov 3, 2024
5805f96
Simplify patch and use %llu
botovq Nov 3, 2024
13a2874
-ec{,p}_oct.c
botovq Nov 2, 2024
13842ed
tweak changelog
botovq Nov 5, 2024
b29d115
cryptlib.h is now crypto_local.h
botovq Nov 5, 2024
1a3e756
adapt to my upstream churn
botovq Nov 5, 2024
3ade76d
malloc-wrapper -> crypto_memory
botovq Nov 6, 2024
52b1623
Hook up new aarch64 feature detection
botovq Nov 8, 2024
19eef52
Disable sha256 assembly
botovq Nov 8, 2024
6719dbb
Teach windows some more about __attribute__
botovq Nov 8, 2024
597c1da
Update ChangeLog
botovq Nov 9, 2024
a59cc93
ecp_{smpl,mont}.c -> ecp_methods.c
botovq Nov 12, 2024
1996dbc
Disable additional MSVC warnings
donny-dont Nov 13, 2024
b5beb0d
Land #1124 - silence some MSVC warnings
botovq Nov 13, 2024
17395e6
The stuff in ec_kmeth was relocated
botovq Nov 16, 2024
c94f431
update man links
botovq Nov 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .github/scripts/changelog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#!/bin/sh
# Copyright (c) 2023 Joshua Sing <[email protected]>
#
# 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.

#
# Usage: changelog.sh <version>
# Reads the changelog for the specified version from the changelog file.
# The output will be reformatted for use in GitHub releases.
#
# The changelog file defaults to "ChangeLog", but can be changed by setting
# the environment variable $CHANGELOG_FILE
#

set -e

# Check if the version argument is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <version>" 1>&2
exit 1
fi

version="${1#v}"
changelog_file="${CHANGELOG_FILE:-ChangeLog}"
found_version=false
changelog=""

# Check if the specified changelog file exists
if [ ! -f "$changelog_file" ]; then
echo "Error: Changelog file '$changelog_file' not found" 1>&2
exit 1
fi

# Read the changelog file line by line
while IFS= read -r line; do
# Check for the version line
if echo "$line" | grep -Eq "^${version} - "; then
found_version=true
continue
fi

# Continue reading the changelog until the next version or end of file,
# skipping empty lines
if $found_version; then
echo "$line" | grep -Eq "^\s*$" && continue
echo "$line" | grep -Eq "^[0-9]+\.[0-9]+\.[0-9]+ - " && break
changelog="${changelog}${line}\n"
fi
done < "$changelog_file"

# If the specified version was not found, print an error
if ! $found_version; then
echo "Error: Version $version was not found in changelog" 1>&2
exit 1
fi

# Tidy up the changelog for displaying on GitHub
changelog=$(echo "$changelog" | sed -e 's/^\t\*/###/' -e 's/^\t//')

# Print the changelog for the specified version
echo "$changelog"
echo
echo "Full changelog: https://github.com/libressl/portable/blob/master/ChangeLog"
exit 0
35 changes: 35 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# GitHub Actions workflow to run tests on Android.
name: "Android"

on: [push, pull_request]

concurrency:
group: "${{ github.workflow }}-${{ github.event.number || github.ref }}"
cancel-in-progress: true

jobs:
test:
name: "Test ${{ matrix.name }}"
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
include:
- name: "Android 8-9"
min-nal: 26
max-nal: 28
- name: "Android 10-11"
min-nal: 29
max-nal: 30
steps:
- name: "Checkout repository"
uses: actions/checkout@v4

- name: "Run CI script"
run: ./scripts/test
env:
ARCH: "android"
MIN_NAL: "${{ matrix.min-nal }}"
MAX_NAL: "${{ matrix.max-nal }}"
30 changes: 0 additions & 30 deletions .github/workflows/android_test.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/cifuzz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CIFuzz

on:
workflow_dispatch:

concurrency:
group: "${{ github.workflow }}-${{ github.event.number || github.ref }}"
cancel-in-progress: true

jobs:
Fuzzing:
runs-on: ubuntu-latest
steps:
- name: Build Fuzzers
id: build
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
with:
oss-fuzz-project-name: 'libressl'
dry-run: false
language: c++
- name: Run Fuzzers
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
oss-fuzz-project-name: 'libressl'
fuzz-seconds: 300
dry-run: false
language: c++
- name: Upload Crash
uses: actions/upload-artifact@v4
if: failure() && steps.build.outcome == 'success'
with:
name: artifacts
path: ./out/artifacts
89 changes: 89 additions & 0 deletions .github/workflows/cmake_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: cmake_config

on: [push, pull_request]

concurrency:
group: "${{ github.workflow }}-${{ github.event.number || github.ref }}"
cancel-in-progress: true

jobs:
cmake-check:
defaults:
run:
shell: bash
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
continue-on-error: false
name: ${{ matrix.os }}
steps:
- name: Setup Windows dependencies
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
update: true
install: >-
autoconf
automake
diffutils
libtool
gcc
git
patch
perl

- name: Setup macOS dependencies
if: runner.os == 'macOS'
run: brew install automake libtool

- uses: actions/checkout@v4

- name: Prepare source tree for build (Windows)
if: runner.os == 'Windows'
run: ./autogen.sh
shell: msys2 {0}

- name: Prepare source tree for build (Unix)
if: runner.os != 'Windows'
run: ./autogen.sh

- name: Configure
run: |
cmake -S . \
-B build \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/../local

- name: Build
run: cmake --build build --config Release --verbose

- name: Install
run: cmake --install build --config Release

- name: Consume from the build directory - Configure
run: |
cmake -S tests/cmake \
-B consumer-build \
-D CMAKE_BUILD_TYPE=Release \
-D LibreSSL_DIR=$GITHUB_WORKSPACE/build
- name: Consume from the build directory - Build
run: cmake --build consumer-build --config Release --verbose

- name: Consume from the install directory (CMAKE_PREFIX_PATH) - Configure
run: |
cmake -S tests/cmake \
-B consumer-install-prefix \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_PREFIX_PATH=$GITHUB_WORKSPACE/../local
- name: Consume from the install directory (CMAKE_PREFIX_PATH) - Build
run: cmake --build consumer-install-prefix --config Release --verbose

- name: Consume from the install directory (LibreSSL_DIR) - Configure
run: |
cmake -S tests/cmake \
-B consumer-install-dir \
-D CMAKE_BUILD_TYPE=Release \
-D LibreSSL_DIR=$GITHUB_WORKSPACE/../local/lib/cmake/LibreSSL
- name: Consume from the install directory (LibreSSL_DIR) - Build
run: cmake --build consumer-install-dir --config Release --verbose
69 changes: 69 additions & 0 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# GitHub Actions workflow to run Coverity scans.
name: "Coverity"

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # At 00:00 daily.

concurrency:
group: "${{ github.workflow }}-${{ github.event.number || github.ref }}"
cancel-in-progress: true

jobs:
scan:
name: "Scan"
runs-on: "ubuntu-latest"
if: github.repository_owner == 'libressl' # Prevent running on forks
permissions:
contents: read
steps:
- name: "Checkout repository"
uses: actions/checkout@v4

- name: "Install dependencies"
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build

- name: "Download Coverity build tool"
env:
PROJECT: "libressl-portable%2Fportable"
COVERITY_SCAN_TOKEN: "${{ secrets.COVERITY_SCAN_TOKEN }}"
run: |
wget -c -N https://scan.coverity.com/download/linux64 --post-data "token=$COVERITY_SCAN_TOKEN&project=$PROJECT" -O coverity_tool.tar.gz
mkdir coverity_tool
tar xzf coverity_tool.tar.gz --strip 1 -C coverity_tool

- name: "Setup"
run: |
./autogen.sh
./configure
make dist
tar zxf libressl-*.tar.gz
rm libressl-*.tar.gz
cd libressl-*
mkdir build-static
mkdir build-shared
cmake -GNinja -DBUILD_SHARED_LIBS=ON ..

- name: "Build with Coverity build tool"
run: |
export PATH=`pwd`/coverity_tool/bin:$PATH
cd libressl-*
cov-build --dir cov-int ninja

- name: "Submit build result to Coverity Scan"
env:
EMAIL: "[email protected]"
PROJECT: "libressl-portable%2Fportable"
COVERITY_SCAN_TOKEN: "${{ secrets.COVERITY_SCAN_TOKEN }}"
run: |
cd libressl-*
tar czvf cov.tar.gz cov-int
curl --form token=$COVERITY_SCAN_TOKEN \
--form email=$EMAIL \
--form [email protected] \
--form version="Commit $GITHUB_SHA" \
--form description="Build submitted via CI" \
https://scan.coverity.com/builds?project=$PROJECT
20 changes: 0 additions & 20 deletions .github/workflows/cross_test.yml

This file was deleted.

Loading