[Chinese-commits] [fqterm] 23/34: Use BN_is_negative(bignum) instead of bignum->neg
Boyuan Yang
hosiet-guest at moszumanska.debian.org
Tue Nov 1 06:06:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
hosiet-guest pushed a commit to branch master
in repository fqterm.
commit a2f29b5755222fbbeb2f823057d1ecd60a786a3d
Author: Iru Cai <mytbk920423 at gmail.com>
Date: Wed Oct 26 13:44:03 2016 +0800
Use BN_is_negative(bignum) instead of bignum->neg
In OpenSSL>=1.1.0: bn, a sub library in libcrypto, has been made opaque
---
src/protocol/internal/fqterm_ssh_buffer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/protocol/internal/fqterm_ssh_buffer.cpp b/src/protocol/internal/fqterm_ssh_buffer.cpp
index d95497a..1a44209 100644
--- a/src/protocol/internal/fqterm_ssh_buffer.cpp
+++ b/src/protocol/internal/fqterm_ssh_buffer.cpp
@@ -132,7 +132,7 @@ void FQTermSSHBuffer::putSSH1BN(BIGNUM *bignum) {
void FQTermSSHBuffer::putSSH2BN(BIGNUM *bignum) {
// FIXME: support negative number and add error handling.
- FQ_VERIFY(!bignum->neg); // currently we don't support negative big number.
+ FQ_VERIFY(!BN_is_negative(bignum)); // currently we don't support negative big number.
if (BN_is_zero(bignum)) {
this->putInt(0);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/chinese/fqterm.git
More information about the Chinese-commits
mailing list