Skip to content

Commit

Permalink
Fix crypto UT after upgrading to golang v1.21.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hjiawei committed Mar 6, 2024
1 parent a92b26c commit a67f1ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions crypto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ fv: setup-fv bin/fips-test-build
# Run the nmap tool on the server to find out the tls versions and ciphers.
docker run --net=host --rm -it instrumentisto/nmap --script ssl-enum-ciphers -p 8083 127.0.0.1 > tmp/nmap.log
# remove times and dates from file
sed -i '1,4d;22d' tmp/nmap.log
sed -i '1,4d;19d' tmp/nmap.log
docker rm -f fips-test-build
# If the ciphers are as expected, we get exit code 0.
diff fv/expected-nmap.log tmp/nmap.log
diff -u fv/expected-nmap.log tmp/nmap.log

bin/fips-test-build:
$(call build_cgo_boring_binary, $(PACKAGE_NAME)/fv/main, $@)
Expand Down
7 changes: 2 additions & 5 deletions crypto/fv/expected-nmap.log
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ PORT STATE SERVICE
| ciphers:
| TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (secp256r1) - A
| TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (secp256r1) - A
| TLS_RSA_WITH_AES_128_GCM_SHA256 (rsa 2048) - A
| TLS_RSA_WITH_AES_256_GCM_SHA384 (rsa 2048) - A
| compressors:
| NULL
| cipher preference: server
| TLSv1.3:
| ciphers:
| TLS_AKE_WITH_AES_128_GCM_SHA256 (secp256r1) - A
| TLS_AKE_WITH_AES_256_GCM_SHA384 (secp256r1) - A
| cipher preference: server
|_ least strength: A

0 comments on commit a67f1ee

Please sign in to comment.