Skip to content

Commit b676bf7

Browse files
DomT4ljharb
authored andcommitted
[Fix] checksums: remove libressl command support
This was an "oops" on my part when I was testing changes for my work that was later adapted & merged in f1bca10. LibreSSL is never installed as a `libressl` as it is intended to be a replacement for `openssl` as much as possible, and consequently the executable is called `openssl`.
1 parent fa22d71 commit b676bf7

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

nvm.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,8 +1079,6 @@ nvm_get_checksum_alg() {
10791079
nvm_echo 'sha-256'
10801080
elif nvm_has "openssl" && ! nvm_is_alias "openssl"; then
10811081
nvm_echo 'sha-256'
1082-
elif nvm_has "libressl" && ! nvm_is_alias "libressl"; then
1083-
nvm_echo 'sha-256'
10841082
elif nvm_has "bssl" && ! nvm_is_alias "bssl"; then
10851083
nvm_echo 'sha-256'
10861084
elif nvm_has "sha1sum" && ! nvm_is_alias "sha1sum"; then
@@ -1090,7 +1088,7 @@ nvm_get_checksum_alg() {
10901088
elif nvm_has "shasum" && ! nvm_is_alias "shasum"; then
10911089
nvm_echo 'sha-1'
10921090
else
1093-
nvm_err 'Unaliased sha256sum, shasum, sha256, gsha256sum, openssl, libressl, or bssl not found.'
1091+
nvm_err 'Unaliased sha256sum, shasum, sha256, gsha256sum, openssl, or bssl not found.'
10941092
nvm_err 'Unaliased sha1sum, sha1, or shasum not found.'
10951093
return 1
10961094
fi
@@ -1122,9 +1120,6 @@ nvm_compute_checksum() {
11221120
elif nvm_has "openssl" && ! nvm_is_alias "openssl"; then
11231121
nvm_err 'Computing checksum with openssl dgst -sha256'
11241122
command openssl dgst -sha256 "${FILE}" | rev | command awk '{print $1}' | rev
1125-
elif nvm_has "libressl" && ! nvm_is_alias "libressl"; then
1126-
nvm_err 'Computing checksum with libressl dgst -sha256'
1127-
command libressl dgst -sha256 "${FILE}" | rev | command awk '{print $1}' | rev
11281123
elif nvm_has "bssl" && ! nvm_is_alias "bssl"; then
11291124
nvm_err 'Computing checksum with bssl sha256sum'
11301125
command bssl sha256sum "${FILE}" | command awk '{print $1}'
@@ -1225,12 +1220,10 @@ nvm_checksum() {
12251220
NVM_CHECKSUM="$(command gsha256sum "${1-}" | command awk '{print $1}')"
12261221
elif nvm_has "openssl" && ! nvm_is_alias "openssl"; then
12271222
NVM_CHECKSUM="$(command openssl dgst -sha256 "${1-}" | rev | command awk '{print $1}' | rev)"
1228-
elif nvm_has "libressl" && ! nvm_is_alias "libressl"; then
1229-
NVM_CHECKSUM="$(command libressl dgst -sha256 "${1-}" | rev | command awk '{print $1}' | rev)"
12301223
elif nvm_has "bssl" && ! nvm_is_alias "bssl"; then
12311224
NVM_CHECKSUM="$(command bssl sha256sum "${1-}" | command awk '{print $1}')"
12321225
else
1233-
nvm_err 'Unaliased sha256sum, shasum, sha256, gsha256sum, openssl, libressl, or bssl not found.'
1226+
nvm_err 'Unaliased sha256sum, shasum, sha256, gsha256sum, openssl, or bssl not found.'
12341227
nvm_err 'WARNING: Continuing *without checksum verification*'
12351228
return
12361229
fi

0 commit comments

Comments
 (0)