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,116 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1116 commits
Select commit Hold shift + click to select a range
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
8de3678
Disable sha512 perlasm
botovq Nov 16, 2024
c25fc02
Update ChangeLog
botovq Nov 22, 2024
0d1912a
Update ChangeLog
botovq Nov 23, 2024
d58e355
Attempt to fix windows
botovq Nov 23, 2024
a6d8cdd
Update ChangeLog
botovq Nov 24, 2024
b06265c
Added CMake hint when searching for LibreSSL directory on macOS
csb6 Nov 30, 2024
f843a34
Land #1126 - hint for homebrew install destination
botovq Nov 30, 2024
694d869
Disable sha1 assembly on amd64
botovq Dec 5, 2024
63798cd
Update man links
botovq Dec 6, 2024
218dc42
Update man links
botovq Dec 8, 2024
393106f
Update ChangeLog
botovq Dec 10, 2024
915f39d
Update ChangeLog
botovq Dec 10, 2024
7b5be5b
Tweak ChangeLog
botovq Dec 12, 2024
0820712
Link mlkem to build
botovq Dec 14, 2024
74cd742
Update speed patch
botovq Dec 14, 2024
b6334af
Updat man links
botovq Dec 14, 2024
b96ad7e
Also install test headers
botovq Dec 14, 2024
af9fe76
Regen crypto-cpu-caps.c patches
botovq Dec 14, 2024
a27f602
Fix CTASSERT() once and for all
botovq Dec 14, 2024
a6cc8cc
Hook ML-KEM related tests
nak3 Dec 15, 2024
e8658eb
Update ChangeLog
botovq Dec 17, 2024
7af8536
Land #1127 - link MLKEM tests to build
botovq Dec 17, 2024
f46d437
Some fixes for ML-KEM tests
botovq Dec 17, 2024
6ac24f2
Land #1128 - some fixes for ML-KEM tests
botovq Dec 17, 2024
3e6153a
unset CC only for mingw and arm32
nak3 Dec 17, 2024
9ed5c54
update style
nak3 Dec 18, 2024
12031e4
Move ARCH check
nak3 Dec 18, 2024
c8bb011
Land #1229 - unset CC only for mingw and arm32
botovq Dec 18, 2024
bf808ea
Provide getdelim and getline compat shims
botovq Dec 19, 2024
3378e97
Remove mlkem and bytestring from public visibility for now
Dec 20, 2024
1005119
fix .gitignore for mlkem and pick up hidden header
Dec 20, 2024
5626ce4
Add in missing endianess functions for Apple targets
Dec 20, 2024
3de45b0
update man links
Dec 24, 2024
4e05529
Adjust the ML-KEM tests to recent reorganization
botovq Dec 26, 2024
c9e2499
tb, you should know by now that windows has no __attribute__
botovq Dec 26, 2024
6debfc0
try to appease emscripten
botovq Dec 26, 2024
2cb875e
Land #1130 - add endianness functions for apple
botovq Dec 26, 2024
feb5a0d
Update man links
botovq Dec 27, 2024
8dad5fe
Update for speed.c and .h churn
botovq Jan 2, 2025
13207b6
link rsa_method_test to build
botovq Jan 4, 2025
27f16a6
Update ChangeLog
botovq Jan 5, 2025
015ca8c
Update ChangeLog
botovq Jan 6, 2025
d502ec9
Update Changelog
botovq Jan 7, 2025
255f315
What happens on ubuntu-24.04?
botovq Jan 9, 2025
0d8a436
Land #1134 - pin ubuntu-latest to 24.04
botovq Jan 9, 2025
7a9c5f1
ci: improve cmake config workflow
joshuasing Jan 11, 2025
b8e4965
ci: change cmake workflow name to match others
joshuasing Jan 11, 2025
2c8bc60
Land 1135 - CI: improve cmake config workflow
botovq Jan 11, 2025
33b3389
Update ChangeLog
botovq Jan 11, 2025
c0b6859
Zap doubled word
botovq Jan 11, 2025
bb38a29
Update ChangeLog
botovq Jan 19, 2025
d8830e4
update ChangeLog
botovq Jan 19, 2025
055b96d
update ChangeLog
botovq Jan 21, 2025
49aacfc
Update ChangeLog
botovq Jan 22, 2025
7428e55
Disable MD5 ASM
botovq Jan 22, 2025
63b3165
Update ChangeLog
botovq Jan 25, 2025
7e58cd8
Update ChangeLog
botovq Jan 25, 2025
5bbae88
Link renegotiation test to build
botovq Feb 3, 2025
7e7df6a
Land #1139 - link renegotiation test to build
botovq Feb 3, 2025
1912261
Update ChangeLog
botovq Jan 26, 2025
a7cdf13
Update ChangeLog
botovq Feb 8, 2025
cd24a50
ci: remove use of ubuntu-20.04 runner image
joshuasing Feb 11, 2025
b9c2e63
Land #1140 - remove ubuntu 20.04 runner image
botovq Feb 11, 2025
90624c3
Update ChangeLog
botovq Feb 13, 2025
01f74a0
Garbage collect SHA*ASM
botovq Feb 14, 2025
a504575
disable sha-asm on amd64
botovq Feb 14, 2025
6abe6be
Update ChangeLog
botovq Feb 26, 2025
849dbab
Fixes tests
omikrun Mar 4, 2025
6551a0a
Land #1141 - fix MinGW tests
botovq Mar 4, 2025
ba862f2
Update ChangeLog
botovq Mar 4, 2025
c2fd126
Update ChangeLog
botovq Mar 7, 2025
dcea629
Disable SHA-256 asm for aarch64
botovq Mar 7, 2025
98f393f
Fix -I lines for ec_asn1_test
botovq Mar 9, 2025
6036e7e
Update man links
botovq Mar 9, 2025
ccc254e
Fix UI_OpenSSL for Windows
botovq Mar 9, 2025
8a536f8
Update ChangeLog
botovq Mar 11, 2025
8d3e8a1
rebase aarch64 crypto_arch.h patch
busterb Mar 13, 2025
917db9a
Update ChangeLog
botovq Feb 11, 2025
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-24.04
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-24.04
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
98 changes: 98 additions & 0 deletions .github/workflows/cmake-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# GitHub Actions workflow to check CMake config.
name: "CMake Check"

on:
push: {}
pull_request: {}

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

jobs:
check:
name: "${{ matrix.os }}"
runs-on: "${{ matrix.os }}"
strategy:
fail-fast: true
matrix:
os: [ "windows-2022", "macos-14", "ubuntu-24.04" ]
defaults:
run:
shell: "bash"
permissions:
contents: read
steps:
- name: "Checkout repository"
uses: actions/checkout@v4

- 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

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

- 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-24.04"
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