summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2016-10-26 13:44:03 +0800
committerIru Cai <mytbk920423@gmail.com>2016-10-28 10:41:01 +0800
commita2f29b5755222fbbeb2f823057d1ecd60a786a3d (patch)
treed2bd48f19c914ab740dfbba81eaf0fd1fe722f02
parente2247862eab2782e61af505b1a5656831ec6a5f0 (diff)
downloadfqterm-a2f29b5755222fbbeb2f823057d1ecd60a786a3d.tar.xz
Use BN_is_negative(bignum) instead of bignum->neg
In OpenSSL>=1.1.0: bn, a sub library in libcrypto, has been made opaque
-rw-r--r--src/protocol/internal/fqterm_ssh_buffer.cpp2
1 files changed, 1 insertions, 1 deletions
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);