-
-
Notifications
You must be signed in to change notification settings - Fork 11k
Improve some BN documentation. #5141
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
Conversation
Thanks to Nicolas Schodet for pointing this out.
|
sorry, one last time please @t-j-h :) |
| BN_get_word() returns the value B<a>, and 0xffffffffL if B<a> cannot | ||
| be represented as an unsigned long. | ||
| BN_get_word() returns the value B<a>, or all-bits-set if B<a> cannot | ||
| be represented as a single integer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So how does one check this in a portable way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
~(BN_LONG)0 or if retval+1==0
|
Didn't this whole exercise start out from a complaint that BN_LONG is not a thing in the public headers anymore (and in fact not at all, since commit 94af0cd, by you)? |
|
I think you read too quickly; BN_ULONG not BN_LONG :) |
Thanks to Nicolas Schodet for pointing this out. Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from #5141)
|
Merged to master. Separate PR coming for 1.1.0/1.0.2 |
Thanks to Nicolas Schodet for pointing this out.
Fixes #5066. For all releases.