From a2f29b5755222fbbeb2f823057d1ecd60a786a3d Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Wed, 26 Oct 2016 13:44:03 +0800 Subject: 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); -- cgit v1.2.3