2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-09-28 23:53:41 +02:00

Changed error return codes to be in line with the advanced bash scripting recommendations of 64-113

This commit is contained in:
Pepi Zawodsky 2014-04-15 15:22:18 +02:00
parent 16f4c5db74
commit d434f68772

View File

@ -16,13 +16,13 @@ ALLCIPHERS=0
OUTPUTFORMAT="terminal"
# Error codes
E_MISSING_OPENSSL_PARAMETERS=250 # When we have valid cipherscan options, but are missing any parameters to pass to OpenSSL.
E_MISSING_OPENSSL_PARAMETERS=113 # When we have valid cipherscan options, but are missing any parameters to pass to OpenSSL.
ERROR_MESSAGE[$E_MISSING_OPENSSL_PARAMETERS]="Missing any OpenSSL parameters"
E_OPENSSL_NOT_FOUND=249 # Cound't find the specified OpenSSL binary.
E_OPENSSL_NOT_FOUND=112 # Cound't find the specified OpenSSL binary.
ERROR_MESSAGE[$E_OPENSSL_NOT_FOUND]="openssl not found"
E_OPENSSL_NOT_EXECUTABLE=248 # Specified OpenSSL has been found but is not executable for user.
E_OPENSSL_NOT_EXECUTABLE=111 # Specified OpenSSL has been found but is not executable for user.
ERROR_MESSAGE[$E_OPENSSL_NOT_EXECUTABLE]="openssl not executable"
function error_exit {