crypto: make getCiphers() return non-SSL ciphers
Commit f53441ab added crypto.getCiphers() as a function that returns the names of SSL ciphers. Commit 14a6c4ef then added crypto.getHashes(), which returns the names of digest algorithms, but that creates a subtle inconsistency: the return values of crypto.getHashes() are valid arguments to crypto.createHash() but that is not true for crypto.getCiphers() - the returned values are only valid for SSL/TLS functions. Rectify that by adding tls.getCiphers() and making crypto.getCiphers() return proper cipher names.
parent
488b74d6
Please register or sign in to comment