diff options
author | Ingela Anderton Andin <[email protected]> | 2015-06-10 11:04:32 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2015-06-10 11:04:32 +0200 |
commit | 0b19d46eaa4e4cf40be51acca9760c8f969638f2 (patch) | |
tree | 7da93fd953a7006774ecf730b005a34907dc775c | |
parent | ae7347bfdcab2486bb55dfe54918a0c994d8b7c7 (diff) | |
download | otp-0b19d46eaa4e4cf40be51acca9760c8f969638f2.tar.gz otp-0b19d46eaa4e4cf40be51acca9760c8f969638f2.tar.bz2 otp-0b19d46eaa4e4cf40be51acca9760c8f969638f2.zip |
ssl: Add unassigned values
-rw-r--r-- | lib/ssl/src/ssl_cipher.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ssl/src/ssl_cipher.erl b/lib/ssl/src/ssl_cipher.erl index 0039f24adf..47ee4d68fb 100644 --- a/lib/ssl/src/ssl_cipher.erl +++ b/lib/ssl/src/ssl_cipher.erl @@ -1574,6 +1574,7 @@ hash_algorithm(?SHA224) -> sha224; hash_algorithm(?SHA256) -> sha256; hash_algorithm(?SHA384) -> sha384; hash_algorithm(?SHA512) -> sha512; +hash_algorithm(Other) when is_integer(Other) andalso ((Other >= 7) and (Other =< 223)) -> unassigned; hash_algorithm(Other) when is_integer(Other) andalso ((Other >= 224) and (Other =< 255)) -> Other. sign_algorithm(anon) -> ?ANON; @@ -1584,6 +1585,7 @@ sign_algorithm(?ANON) -> anon; sign_algorithm(?RSA) -> rsa; sign_algorithm(?DSA) -> dsa; sign_algorithm(?ECDSA) -> ecdsa; +sign_algorithm(Other) when is_integer(Other) andalso ((Other >= 4) and (Other =< 223)) -> unassigned; sign_algorithm(Other) when is_integer(Other) andalso ((Other >= 224) and (Other =< 255)) -> Other. hash_size(null) -> |