File tree 2 files changed +13
-18
lines changed
2 files changed +13
-18
lines changed Original file line number Diff line number Diff line change 93
93
with :
94
94
path : ~/openssl
95
95
key : openssl-${{ runner.os }}-${{ matrix.openssl }}-${{ matrix.append-configure || 'default' }}
96
- if : matrix.openssl != 'openssl-master' && matrix.openssl != 'libressl-master'
96
+ if : matrix.openssl != 'openssl-master' && matrix.openssl != 'libressl-master' && matrix.openssl != 'aws-lc-latest'
97
97
98
98
- name : Compile OpenSSL library
99
99
if : steps.cache-openssl.outputs.cache-hit != 'true'
@@ -127,7 +127,7 @@ jobs:
127
127
git clone https://github.com/aws/aws-lc.git .
128
128
AWS_LC_RELEASE=$(git tag --sort=-creatordate --list "v*" | head -1)
129
129
git checkout $AWS_LC_RELEASE
130
- cmake -DCMAKE_INSTALL_PREFIX=$HOME/openssl
130
+ cmake -DCMAKE_INSTALL_PREFIX=$HOME/openssl -DCMAKE_INSTALL_LIBDIR=lib
131
131
make -j4 && make install
132
132
;;
133
133
*)
Original file line number Diff line number Diff line change @@ -18,25 +18,20 @@ def test_new_generate
18
18
assert_key ( dh )
19
19
end if ENV [ "OSSL_TEST_ALL" ]
20
20
21
- def test_new_break_on_non_fips
22
- omit_on_fips if !aws_lc?
23
-
24
- assert_nil ( OpenSSL ::PKey ::DH . new ( NEW_KEYLEN ) { break } )
25
- assert_raise ( RuntimeError ) do
26
- OpenSSL ::PKey ::DH . new ( NEW_KEYLEN ) { raise }
21
+ def test_new_break
22
+ unless openssl? && OpenSSL . fips_mode
23
+ assert_nil ( OpenSSL ::PKey ::DH . new ( NEW_KEYLEN ) { break } )
24
+ assert_raise ( RuntimeError ) do
25
+ OpenSSL ::PKey ::DH . new ( NEW_KEYLEN ) { raise }
26
+ end
27
+ else
28
+ # The block argument is not executed in FIPS case.
29
+ # See https://github.com/ruby/openssl/issues/692 for details.
30
+ assert ( OpenSSL ::PKey ::DH . new ( NEW_KEYLEN ) { break } )
31
+ assert ( OpenSSL ::PKey ::DH . new ( NEW_KEYLEN ) { raise } )
27
32
end
28
33
end
29
34
30
- def test_new_break_on_fips
31
- omit_on_non_fips
32
- return unless openssl? # This behavior only applies to OpenSSL.
33
-
34
- # The block argument is not executed in FIPS case.
35
- # See https://github.com/ruby/openssl/issues/692 for details.
36
- assert ( OpenSSL ::PKey ::DH . new ( NEW_KEYLEN ) { break } )
37
- assert ( OpenSSL ::PKey ::DH . new ( NEW_KEYLEN ) { raise } )
38
- end
39
-
40
35
def test_derive_key
41
36
params = Fixtures . pkey ( "dh2048_ffdhe2048" )
42
37
dh1 = OpenSSL ::PKey . generate_key ( params )
You can’t perform that action at this time.
0 commit comments