Skip to content

Commit

Permalink
Squashed 'openssl/' changes from 19cc035b6c6..31157bc0b46
Browse files Browse the repository at this point in the history
31157bc0b46 Prepare for release of 3.0.8
8c0eaeaf7c6 make update
2a4b68ef012 Update copyright year
2ad99281707 Internaly declare the DSA type for no-deprecated builds
071e702aec8 Add CHANGES.md and NEWS.md entries for the 3.0.8 release
a0f2359613f Add testcase for missing return check of BIO_set_md() calls
d3b6dfd70db pk7_doit.c: Check return of BIO_set_md() calls
2f7530077e0 CVE-2023-0286: Fix GENERAL_NAME_cmp for x400Address (3.0)
7e371855829 Add test for DSA pubkey without param import and check
fab4973801b Do not create DSA keys without parameters by decoder
c1b4467a7cc Prevent creating DSA and DH keys without parameters through import
23985bac83f Fix NULL deference when validating FFC public key.
67813d8a4d1 Add test for d2i_PKCS7 NULL dereference
934a04f0e77 Do not dereference PKCS7 object data if not set
f596ec8a6f9 Check CMS failure during BIO setup with -stream is handled correctly
8818064ce3c Fix a UAF resulting from a bug in BIO_new_NDEF
cbafa34b5a0 Add a test for CVE-2022-4450
63bcf189be7 Avoid dangling ptrs in header and data params for PEM_read_bio_ex
8e257b86e58 Fix Timing Oracle in RSA decryption
fe6842f5a5d Add testcase for nc_match_single type confusion
c927a349269 Fix type confusion in nc_match_single()
36d85b02cef doc/man1/{storeutl,gendsa}: point out that extra options/arguments are ignored
77f29142b26 Fix incomplete check on EVP_CIPHER_param_to_asn1()
28b78f39560 Use $config{build_file} instead of $target{build_file}
0f67990573f Fix a potential memory leak in crypto/provider_child.c
45e6a974736 BIO_read.pod: fix small typo
d36b0450d9d Do not include sparse_array.o in libssl with no-shared
5a1b22fc2e6 Avoid duplicating symbols in legacy.a with some build options
721aca05df2 Fix incomplete check on X509V3_add1_i2d()
39bc59bc83c ChaCha20-Poly1305 no longer supports truncated IV's.
da6d4180526 coverity 1520506: error handling
2680cd25ed0 coverity 1520505: error handling
3a0bbaba732 Add notes about ignoring initialization failures on contexts
a47eff38d7e Document that the RSA e value is mandatory when importing.
d646730b89c Fix Coverity 1520485: logically dead code
84eace37362 Clarify the change of enc -S behavior in 3.0
9c92c4917e1 Fix incomplete checks for EVP_CIPHER_asn1_to_param
ce7193b1233 OSSL_trace_set_channel(): add important statement that it takes BIO ownership
a478dd11e9e set_trace_data(): prevent double free on OPENSSL_strdup() failure
a3dd46d2c63 Fix corruption when searching for CRLs in hashed directories
ae0f54d3005 Add DTLS support to the large app data test
ecafcd8ad35 Ensure our buffer allocation allows for the Explicit IV
6960fb03d58 Add a test for large app data
299f096ff39 MD5.pod: Recommend SHA-2 or SHA-3 family hashes instead of legacy ones
5f77f91a42f X509_V_ERR_INVALID_PURPOSE: fix misleading text; Fix omission in X509_VERIFY_PARAM_clear_flags doc
add42e0b3b5 cmp_client.c: fix handling of total_timeout for RR and GENM transactions
538682c62ac cmp_client_test.c: add tests for end_time being initialized for RR/GENM
de3b3c9c04e CMP docs: clarify behavior on message/total timeout values given
780e7b11a54 Fixes wrong return type in BIO_do_connect man page.
846d5099f3c Fix incorrect check on RAND_bytes_ex() in generate_q_fips186_4()
f45c6033ceb Padlock: fix byte swapping assembly for AES-192 and 256
36d03d2f05a Add link to EBNF definition
9db21bebd18 Add negative test for unquoted property string
5aa0554ac37 Correct property EBNF for unquoted strings
b9097b0c3b0 Fix incorrect error return value in i2r_ADMISSION_SYNTAX()
60c19d0d61d Fix potential NULL pointer dereference
e594a9b7605 Clarify documentation of X509_STORE_CTX_get_current_cert()
46d4cb4d8f1 pkey: Imply public check if -pubin is specified
5701ead8f20 Bump actions/setup-python from 4.4.0 to 4.5.0
d6220d1b7f6 Documenting lack of error codes stability
e6b1586ea2b Limit size of modulus for bn_mul_mont and BN_mod_exp_mont_consttime
54eb24982b6 Revert "Limit size of modulus for BN_mod_exp_mont_consttime()"
18308d6616c SSKDF with KMAC should return SIZE_MAX when EVP_KDF_CTX_get_kdf_size() is used.
757fd35182b fix manpage of `d2i_X509(3)`
d92a5da5ae2 Do not check definition of a macro and use it in a single condition
1932e595c80 OSSL_PARAM_BLD and BIGNUM; ensure at least one byte is allocated
f51b4ebb079 In OSSL_PARAM_set_BN(), make sure that the data_size field is at least 1
5601648e91d test/param_build_test.c: test zero BIGNUM
7b807ad6eaa Add testcase for OSSL_trace_set_callback()
318a27d4e9a Avoid ifdefs in trace categories
b4419635c99 test/trace_api_test.c: fix gcc error on -Werror=strict-prototypes
5c6936e92df Add tests for trace_api.
2f2176dc8d3 Doc: Update history section of EC_GROUP API's.
accd85ce7cd Documentation for EVP_PKEY_CTX_get0_pkey() and EVP_PKEY_CTX_get0_peerkey().
b9b411be841 info.c: Fix typos in seed macro name and description string
4f46ff14bec rsaz_exp_x2.c: Remove leftover from broken cherry-pick
e3a9668e48b Revert "rsaz_exp_x2.c: Remove unused ALIGN64 macro"
2a57a117a2e rsaz_exp_x2.c: Remove unused ALIGN64 macro
dcde8ea8c46 rsaz_exp_x2.c: Avoid potential undefined behavior with strict aliasing
842311ae30b Revert "Fix an occasional CI failure due to unaligned access"
6f252dd632a BIO_s_dgram: add documentation and hazard warnings
0a69ca8f635 Avoid possible divide by zero
5b449de0f0a 80-test_cms.t: Fix rsapssSaltlen check on MinGW
7736379c5c0 Cleanse internal BN_generate_dsa_nonce() buffers used to generate k.
1bd53640a2a Bump actions/setup-python from 4.3.1 to 4.4.0
46cf94e5e6e INSTALL.md: Remove trailing space
4a8e7e27649 Docs: Move deprecated ECDSA_ functions into a separate file.
12f64521194 Change HKDF to alloc the info buffer.
053e06bd050 ec_kmgmt.c: check the return of BN_CTX_get() in time.
f0bbb25f348 INSTALL.md: Fix typo
b65285ba438 Add Demos for DSA params/DSA keygen.
b49d8da7745 Fix possible UB in init_info_strings
00323667e3b Add a CMS test for a bad encryption algorithm
e979d9aaf5f Ensure ossl_cms_EncryptedContent_init_bio() reports an error on no OID
a923d9bbb52 Fix BIO_f_asn1() to properly report some errors
0a3eeb3346d Fix SMIME_crlf_copy() to properly report an error
1619478374f Fix BIO_f_cipher() flushing
36d6ebad8f6 Update pyca-cryptography submodule to 38.0.4
999509c235a Honor OSSL_PKEY_PARAM_EC_POINT_CONVERSION_FORMAT as set and default to UNCOMPRESSED
6651044b4d8 Fix a logic flaw in test_mod_exp_zero
c935b89f285 Raise the KMAC limits for key and custom size to 512 bytes
0a229aec0a5 Update FIPS related build instructions.
4ae8fe6cc8d Refine the documents of several APIs
75fa52ddc97 Update HMAC() documentation.
5ba39c0bf79 Fix FIPS Provider compat CI of 3.0 libcrypto with 3.2 FIPS provider
878b00aa336 Coverity: fix 272011 resource leak
53c643f67fe Fix openssl storeutl to allow serial + issuer
f92b294563b Make error reason for disallowed legacy sigalg more specific
bb3a931f867 crypto/err: expand on error code generation
353521b7720 Run-checker merge CI: Memleak test does not work without ubsan
921e19c20aa Revert "Run-checker merge CI: Replace no-shared with no-modules"
4343b2923ac unbuffer stdin before get passwd from stdin
17bd383dd21 Obtain PSS salt length from provider
39fcc351c2c Run-checker merge CI: Replace no-shared with no-modules
bc136fd386b Cross compiles CI: Disable stringop-overflow warning on s390x and m68k
8face2721b7 Fuzz checker CI: Use more generic include dir for fuzzer includes
42cd898bd30 Bump actions/setup-python from 4.3.0 to 4.3.1
c438de07c00 Fix `no-ec enable-ktls` build
6fbbb53477a test: add test case for deadlock reported in #19643
7725e7bfe6f x509: fix double locking problem
9a5c884999a cmp_vfy_test.c: fix name OSSL_CMP_CTX_set0_trusted{,Store}
f6fdbe63c7c OSSL_CMP_validate_msg(): make sure to reject protection type mismatch
c919280f793 Replace some boldened types with a corresponding man page link
2365be29764 Move the description of the core types into their own pages
a0564dc8553 Better sorting of util/other.syms
f60dfe81847 Fix treatment of BUILD_METADATA
f15d23e2f9e Replace "a RSA" with "an RSA"
544758738da Fix the check of BIO_set_write_buffer_size and BIO_set_read_buffer_size
18e45bd9ead Fix the check of EVP_PKEY_decrypt_init
5812a2d282a Fix the checks in rsautl_main
17345cf10f9 doc: fix EVP_SignInit.pod
e3ce39ab344 Clarify the EVP_PKEY_decrypt manual page
d4394159918 cmp_client_test.c: add tests for OSSL_CMP_CTX_get_status
d1aa7d11363 doc: fix location of AES-SIV ciphers
e2758d1a39e Fix occasional assertion failure when storing properties
0e4c201cb88 Drop incorrect skipping of some evp_test testcases with no-gost
ff2f8c81a08 Add test for EVP_PKEY_Q_keygen
ac591bf69e6 Fix typos in doc/man3/EVP_EncryptInit.pod
e7a7aa78348 When using PEM_read_bio_PrivateKey_ex() the public key is optional
e2cf3852733 add missing OSSL_CMP_CTX_reset_geninfo_ITAVs() function
27a09e77667 add missing OSSL_CMP_CTX_reset_geninfo_ITAVs() function
2c65de46785 OSSL_CMP_CTX_reinit(): fix missing reset of ctx->genm_ITAVs
327e968c336 CMP: fix gen_new() in cmp_msg.c checking wrong ITAVs
79701dea429 Fix typo in openssl-x509.pod.in
1c8b17358fe Add SM2 support for EVP_PKEY_Q_keygen
f2784497264 CMP: fix handling of unset or missing failInfo PKI status information
69d3c81ca5c CMP: fix status held in OSSL_CMP_CTX, in particular for genp messages
c28c2e0c7e6 Fix coverity issues in X509v3_addr
f35a4be939a Add missing HISTORY sections for OpenSSL 3.0 related documents.
5ac7cfb5621 Add doc for EVP_ASYM_CIPHER-RSA and clean up OSSL_PROVIDER-FIPS.pod.
07f21b22ca9 evp_extra_test2: Test DH param checks with non-NULL libctx
2bc3854a6cf DH_check[_params]() use libctx of the dh for prime checks
9aa9d6a9426 ParseC.pm: gracefully handle DOS-style end-of-line in source files
3e0a1c2c18b Add test to confirm IPAddressFamily_check_len catches invalid len
17af63c1df8 Catch incorrect IPAddressFamily lengths
56de1f3ce3d Drop explicit check for engines in opt_legacy_okay
b67935515ed Fix the check of EC_GROUP_check_named_curve
e29ea41f6d5 apps/speed.c: fix the wrong checks
eb153d04294 Add documentation for CPUID bit #64+17
17d20f6159a Add test for EVP_PKEY_eq
38066a07e09 Update documentation for keymgmt export utils
aeb80f63d44 Propagate selection all the way on key export
d163bd08bb9 apps/ocsp.c: Add missing test if make_ocsp_response failed
c3e8128befa fipsinstall test: skip PCT DSA signature test for new providers
00cd0627252 test: add two comparision options to fips version test utility code
bb0190e8a4d Use the same encryption growth macro consistently
1aef13c0bdb apps/speed.c: add verifying if fdopen returns NULL
511d8c0fb0e Resign test/certs/rootCA.pem to expire in 100 years
2f27b9363e8 Update the validity period of ed25519 cerificates
b697ae10287 Add test for generating safeprime DH parameters
0f68f59dd45 Use libctx when generating DH parameters
2fee530c86d pem: avoid segfault if PKEY is NULL in PEM_write_bio_PrivateKey
60d391b6f01 pem: fix a memory leak in PEM_write_bio_PrivateKey_traditional
b8a5adf3ec4 Limit size of modulus for BN_mod_exp_mont_consttime()
d0f8056c47f Release the drbg in the global default context before engines
aa97297427f Add a test case for the engine crash with AES-256-CTR
e285a0b5a0e fips-label.yml: Fix the script after actions/github-script upgrade
6feff2e59df Fix PACKET_equal test with BUF_LEN+1 on -Wstringop-overread
f3aa51d6347 Fix documentation for some i2d return values.
424c9521182 Test that signatures using hash name commands work properly
03c5381b41d apps/dgst.c: Set digestname from argv[0] if it is a builtin hash name
76962505be6 Check for private key existence before calling eddsa sign functions
22530d31789 crypto/sha/asm/sha512-ia64.pl: When checking assembler file names, ignore case
4aabade09f9 Configurations/*.tmpl: overhaul assembler make rules.
7343f687705 Update GitHub actions as suggested by dependabot
de45fecf8ae Coverity 1516624: Fix overrun memory access.
f8e6dda7b7c Fix the ceiling on how much encryption growth we can have
c5bc976d9a0 providers/common/der/oids_to_c.pm: Remove use of Data::Dumper
716712f378f Potential null pointer reference
7bfbf68ad04 Prepare for 3.0.8

git-subtree-dir: openssl
git-subtree-split: 31157bc0b46e04227b8468d3e6915e4d0332777c
  • Loading branch information
Futaura committed Feb 7, 2023
1 parent 62a6b59 commit 493601a
Show file tree
Hide file tree
Showing 353 changed files with 6,499 additions and 1,533 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021-2022 The OpenSSL Project Authors. All Rights Reserved.
# Copyright 2021-2023 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
Expand Down Expand Up @@ -29,7 +29,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install unifdef
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: config
Expand All @@ -44,7 +44,7 @@ jobs:
check_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: ./config --banner=Configured --strict-warnings enable-fips && perl configdata.pm --dump
- name: make build_generated
Expand All @@ -62,7 +62,7 @@ jobs:
check-ansi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: CPPFLAGS=-ansi ./config --banner=Configured no-asm no-makedepend enable-buildtest-c++ enable-fips --strict-warnings -D_DEFAULT_SOURCE && perl configdata.pm --dump
- name: make
Expand All @@ -71,7 +71,7 @@ jobs:
basic_gcc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: localegen
run: sudo locale-gen tr_TR.UTF-8
- name: config
Expand All @@ -84,7 +84,7 @@ jobs:
basic_clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: CC=clang ./config --banner=Configured no-fips --strict-warnings && perl configdata.pm --dump
- name: make
Expand All @@ -95,7 +95,7 @@ jobs:
minimal:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: ./config --banner=Configured --strict-warnings no-bulk no-pic no-asm -DOPENSSL_NO_SECURE_MEMORY -DOPENSSL_SMALL_FOOTPRINT && perl configdata.pm --dump
- name: make
Expand All @@ -106,7 +106,7 @@ jobs:
no-deprecated:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: ./config --banner=Configured --strict-warnings no-deprecated enable-fips && perl configdata.pm --dump
- name: make
Expand All @@ -120,7 +120,7 @@ jobs:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: ./config --banner=Configured --strict-warnings no-shared no-fips && perl configdata.pm --dump
- name: make
Expand All @@ -131,7 +131,7 @@ jobs:
non-caching:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: ./config --banner=Configured --debug enable-asan enable-ubsan no-cached-fetch no-fips no-dtls no-tls1 no-tls1-method no-tls1_1 no-tls1_1-method no-async && perl configdata.pm --dump
- name: make
Expand All @@ -142,7 +142,7 @@ jobs:
address_ub_sanitizer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: ./config --banner=Configured --debug enable-asan enable-ubsan enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 enable-fips -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION && perl configdata.pm --dump
- name: make
Expand All @@ -153,7 +153,7 @@ jobs:
memory_sanitizer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
# --debug -O1 is to produce a debug build that runs in a reasonable amount of time
run: CC=clang ./config --banner=Configured --debug -O1 -fsanitize=memory -DOSSL_SANITIZE_MEMORY -fno-optimize-sibling-calls enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 enable-fips && perl configdata.pm --dump
Expand All @@ -165,7 +165,7 @@ jobs:
threads_sanitizer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: CC=clang ./config --banner=Configured no-fips --strict-warnings -fsanitize=thread && perl configdata.pm --dump
- name: make
Expand All @@ -176,7 +176,7 @@ jobs:
enable_non-default_options:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: modprobe tls
run: sudo modprobe tls
- name: config
Expand All @@ -189,7 +189,7 @@ jobs:
fips_and_ktls:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: modprobe tls
run: sudo modprobe tls
- name: config
Expand All @@ -202,7 +202,7 @@ jobs:
no-legacy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: ./config --banner=Configured --strict-warnings no-legacy enable-fips && perl configdata.pm --dump
- name: make
Expand All @@ -213,7 +213,7 @@ jobs:
legacy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: ./config --banner=Configured -Werror --debug no-afalgeng no-shared enable-crypto-mdebug enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers enable-zlib enable-ec_nistp_64_gcc_128 no-fips && perl configdata.pm --dump
- name: make
Expand All @@ -224,7 +224,7 @@ jobs:
buildtest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: ./config --banner=Configured no-asm no-makedepend enable-buildtest-c++ enable-fips --strict-warnings -D_DEFAULT_SOURCE && perl configdata.pm --dump
- name: make
Expand All @@ -238,7 +238,7 @@ jobs:
os: [ubuntu-latest, macos-latest ]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: extra preparations
run: |
mkdir ./build
Expand All @@ -259,7 +259,7 @@ jobs:
external-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- name: package installs
Expand Down Expand Up @@ -290,15 +290,15 @@ jobs:
PYTHON:
- 3.9
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure OpenSSL
run: ./config --banner=Configured --strict-warnings --debug enable-external-tests && perl configdata.pm --dump
- name: make
run: make -s -j4
- name: Setup Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.5.0
with:
python-version: ${{ matrix.PYTHON }}
- uses: actions-rs/toolchain@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compiler-zoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
sudo apt-get update
sudo apt-get -y install ${{ matrix.zoo.cc }}
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: config
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
contents: read # for actions/checkout to fetch code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: package installs
run: |
sudo apt-get -yq install lcov
Expand All @@ -37,7 +37,7 @@ jobs:
- name: generate coverage info
run: lcov -d . -c -o ./lcov.info
- name: Coveralls upload
uses: coverallsapp/github-action@v1.1.2
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: ./lcov.info
8 changes: 4 additions & 4 deletions .github/workflows/cross-compiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
}, {
arch: m68k-linux-gnu,
libs: libc6-dev-m68k-cross,
target: -static -m68040 linux-latomic,
target: -static -m68040 linux-latomic -Wno-stringop-overflow,
fips: no,
tests: -test_includes -test_store -test_x509_store
}, {
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
}, {
arch: s390x-linux-gnu,
libs: libc6-dev-s390x-cross,
target: linux64-s390x
target: linux64-s390x -Wno-stringop-overflow
}, {
arch: sh4-linux-gnu,
libs: libc6-dev-sh4-cross,
Expand All @@ -107,7 +107,7 @@ jobs:
}, {
arch: m68k-linux-gnu,
libs: libc6-dev-m68k-cross,
target: -mcfv4e linux-latomic,
target: -mcfv4e linux-latomic -Wno-stringop-overflow,
tests: none
}, {
arch: mips-linux-gnu,
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
sudo apt-get -yq --force-yes install \
gcc-${{ matrix.platform.arch }} \
${{ matrix.platform.libs }}
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: config with FIPS
if: matrix.platform.fips != 'no'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/fips-checksums.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
mkdir ./build
mkdir ./source
mkdir ./artifact
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.base.repo.full_name }}
ref: ${{ github.event.pull_request.base.ref }}
Expand All @@ -43,7 +43,7 @@ jobs:
- name: make fips-checksums pristine
run: make fips-checksums
working-directory: ./build-pristine
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
path: source
- name: config
Expand All @@ -69,7 +69,7 @@ jobs:
- name: save PR number
run: echo ${{ github.event.number }} > ./artifact/pr_num
- name: save artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: fips_checksum
path: artifact/
14 changes: 7 additions & 7 deletions .github/workflows/fips-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@ jobs:
steps:
- name: 'Download artifact'
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: actions/github-script@v4
uses: actions/github-script@v6
with:
script: |
var artifacts = await github.actions.listWorkflowRunArtifacts({
var artifacts = await github.rest.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{github.event.workflow_run.id }},
});
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
return artifact.name == "fips_checksum"
})[0];
var download = await github.actions.downloadArtifact({
var download = await github.rest.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,
Expand All @@ -48,29 +48,29 @@ jobs:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
- name: 'Check artifact and apply'
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: actions/github-script@v4
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
var fs = require('fs');
var pr_num = Number(fs.readFileSync('./pr_num'));
if ( fs.existsSync('./fips_changed') ) {
github.issues.addLabels({
github.rest.issues.addLabels({
issue_number: pr_num,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['severity: fips change']
});
} else if ( fs.existsSync('./fips_unchanged') ) {
var labels = await github.issues.listLabelsOnIssue({
var labels = await github.rest.issues.listLabelsOnIssue({
issue_number: pr_num,
owner: context.repo.owner,
repo: context.repo.repo
});
for ( var label in labels.data ) {
if (labels.data[label].name == 'severity: fips change') {
github.issues.removeLabel({
github.rest.issues.removeLabel({
issue_number: pr_num,
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fips-old.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- name: create directory
run: mkdir ./current
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
path: current
- name: download module source
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/fuzz-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
}, {
name: libFuzzer,
config: enable-fuzz-libfuzzer enable-asan enable-ubsan,
libs: --with-fuzzer-lib=/usr/lib/llvm-12/lib/libFuzzer.a --with-fuzzer-include=/usr/lib/llvm-12/build/lib/clang/12.0.0/include/fuzzer,
libs: --with-fuzzer-lib=/usr/lib/llvm-12/lib/libFuzzer.a --with-fuzzer-include=/usr/include/clang/12/include/fuzzer,
install: libfuzzer-12-dev,
cc: clang-12,
linker: clang++-12,
tests: -test_memleak
}, {
name: libFuzzer+,
config: enable-fuzz-libfuzzer enable-asan enable-ubsan -fsanitize-coverage=trace-cmp -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION,
libs: --with-fuzzer-lib=/usr/lib/llvm-12/lib/libFuzzer.a --with-fuzzer-include=/usr/lib/llvm-12/build/lib/clang/12.0.0/include/fuzzer,
libs: --with-fuzzer-lib=/usr/lib/llvm-12/lib/libFuzzer.a --with-fuzzer-include=/usr/include/clang/12/include/fuzzer,
extra: enable-fips enable-ec_nistp_64_gcc_128 -fno-sanitize=alignment enable-tls1_3 enable-weak-ssl-ciphers enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-nextprotoneg,
install: libfuzzer-12-dev,
cc: clang-12,
Expand All @@ -48,7 +48,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get -yq --force-yes install ${{ matrix.fuzzy.install }}
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: config
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
fuzz-seconds: 600
dry-run: false
- name: Upload Crash
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
if: failure()
with:
name: artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-checker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: CC=clang ./config --banner=Configured --strict-warnings ${{ matrix.opt }}
- name: config dump
Expand Down
Loading

0 comments on commit 493601a

Please sign in to comment.