Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getCiphers() sometimes returns empty array #74

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

anistark
Copy link

@anistark anistark commented Dec 27, 2018

getCiphers() sometimes returns empty array. Overriding with a default array of all available algo in place.

Fix for issue #73

getCiphers() sometimes returns empty array. Overriding with a default array in place.
@anistark anistark changed the title getCiphers() sometimes returns empty array Fix for issue#73 Dec 27, 2018
@anistark anistark changed the title Fix for issue#73 Fix for issue #73 Dec 27, 2018
@anistark anistark changed the title Fix for issue #73 getCiphers() sometimes returns empty array Dec 27, 2018
return this.crypto.getCiphers().some(function (name) { return name === cipher; });
var localCiphers = [];
if (this.crypto.getCiphers().length > 0) {
localCiphers = this.crypto.getCiphers()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @anistark !

I am not 100% comfortable with this approach as it simply ignore the empty results from getCiphers and override it with hardcoded values that we are not sure if they are supported, and introduce uncertainty for other users.

I am actually curious why getCiphers return an empty array. This seems to indicate a configuration problem. Could you share more details on the issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants