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

getModulus() will now accept Buffers #24

Merged
merged 1 commit into from
Nov 28, 2014
Merged

getModulus() will now accept Buffers #24

merged 1 commit into from
Nov 28, 2014

Conversation

detj
Copy link
Contributor

@detj detj commented Nov 28, 2014

If the certificate parameter was a Buffer earlier, it would throw an error and exit. This patch checks if it is a Buffer and converts it into String for compatibility.

By default fs.readFile's encoding is Buffer, so this could help in case the user forgets to properly encode.

All test passed

andris9 added a commit that referenced this pull request Nov 28, 2014
getModulus() will now accept Buffers
@andris9 andris9 merged commit e23255d into Dexus:master Nov 28, 2014
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