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

Don't error with -1 for BIGNUM exp operations #4682

Closed

Conversation

mattcaswell
Copy link
Member

The man pages say that BIGNUM arithmetic operations fail with a 0 return.
However some functions were returning -1 on error. In master and 1.1.0 they
already return 0, so this brings 1.0.2 in line.

The man pages say that BIGNUM arithmetic operations fail with a 0 return.
However some functions were returning -1 on error. In master and 1.1.0 they
already return 0, so this brings 1.0.2 in line.
@mattcaswell mattcaswell added the branch: 1.0.2 Merge to OpenSSL_1_0_2-stable branch label Nov 6, 2017
@kroeckx kroeckx added the approval: done This pull request has the required number of approvals label Nov 6, 2017
levitte pushed a commit that referenced this pull request Nov 7, 2017
The man pages say that BIGNUM arithmetic operations fail with a 0 return.
However some functions were returning -1 on error. In master and 1.1.0 they
already return 0, so this brings 1.0.2 in line.

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from #4682)
@mattcaswell
Copy link
Member Author

Pushed. Thanks.

@mattcaswell mattcaswell closed this Nov 7, 2017
@bukka
Copy link
Contributor

bukka commented Nov 18, 2017

@mattcaswell I think this can potentially break some application that relay on that return value to be -1. I did the PR to change it in 1.1 ( #1455 ) as I agree it should follow the docs and we had an issue with that in PHP. However not sure if it's worth the potential break of some apps in 1.0.2. It doesn't break PHP though so I don't really mind... :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approval: done This pull request has the required number of approvals branch: 1.0.2 Merge to OpenSSL_1_0_2-stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants