Skip to content

Commit

Permalink
Fix through -> threw (#140)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Powell <[email protected]>
  • Loading branch information
tpowell-progress authored Nov 22, 2024
1 parent a424408 commit 67e7a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omnibus-test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ If ($env:OMNIBUS_FIPS_MODE -eq $true) {

Write-Host "Checking that MD5 digest is not allowed"
# catch OpenSSL::Digest::MD5 and reraise, rescue anything else
& $embedded_bin_dir/ruby.exe -v -e "require 'openssl'; begin;OpenSSL.fips_mode=1;OpenSSL::Digest::MD5.new('hi');rescue OpenSSL::Digest::DigestError => e;puts 'MD5 through an error as expected';rescue => e;raise 'Unexpected error with MD5 digest';puts e.inspect;end"
& $embedded_bin_dir/ruby.exe -v -e "require 'openssl'; begin;OpenSSL.fips_mode=1;OpenSSL::Digest::MD5.new('hi');rescue OpenSSL::Digest::DigestError => e;puts 'MD5 threw an error as expected';rescue => e;raise 'Unexpected error with MD5 digest';puts e.inspect;end"

If ($lastexitcode -ne 0) {
$fips_errors += "Ruby FIPS MD5 validation failed"
Expand Down

0 comments on commit 67e7a2d

Please sign in to comment.