Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 24.14 KB | None | 0 0
  1. root@cac852d5ffc7:/tmp/rads/radium-0.11-1.4.7/src# make -f makefile.unix
  2. g++ -c -O2  -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/tmp/rads/radium-0.11-1.4.7/src -I/tmp/rads/radium-0.11-1.4.7/src/obj -DUSE_UPNP=0 -DENABLE_WALLET -I/tmp/rads/radium-0.11-1.4.7/src/leveldb/include -I/tmp/rads/radium-0.11-1.4.7/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/alert.d -o obj/alert.o alert.cpp
  3. In file included from chainparams.h:9:0,
  4.                  from alert.cpp:7:
  5. bignum.h:57:24: error: invalid use of incomplete type 'BIGNUM {aka struct bignum_st}'
  6.  class CBigNum : public BIGNUM
  7.                         ^~~~~~
  8. In file included from /usr/include/openssl/crypto.h:31:0,
  9.                  from allocators.h:12,
  10.                  from serialize.h:22,
  11.                  from alert.h:9,
  12.                  from alert.cpp:5:
  13. /usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of 'BIGNUM {aka struct bignum_st}'
  14.  typedef struct bignum_st BIGNUM;
  15.                 ^~~~~~~~~
  16. In file included from chainparams.h:9:0,
  17.                  from alert.cpp:7:
  18. bignum.h: In constructor 'CBigNum::CBigNum()':
  19. bignum.h:62:21: error: 'BN_init' was not declared in this scope
  20.          BN_init(this);
  21.                      ^
  22. bignum.h: In copy constructor 'CBigNum::CBigNum(const CBigNum&)':
  23. bignum.h:67:21: error: 'BN_init' was not declared in this scope
  24.          BN_init(this);
  25.                      ^
  26. bignum.h:68:30: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)'
  27.          if (!BN_copy(this, &b))
  28.                               ^
  29. bignum.h:70:31: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'void BN_clear_free(BIGNUM*)'
  30.              BN_clear_free(this);
  31.                                ^
  32. bignum.h: In member function 'CBigNum& CBigNum::operator=(const CBigNum&)':
  33. bignum.h:77:30: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)'
  34.          if (!BN_copy(this, &b))
  35.                               ^
  36. bignum.h: In destructor 'CBigNum::~CBigNum()':
  37. bignum.h:84:27: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'void BN_clear_free(BIGNUM*)'
  38.          BN_clear_free(this);
  39.                            ^
  40. bignum.h: In constructor 'CBigNum::CBigNum(signed char)':
  41. bignum.h:88:49: error: 'BN_init' was not declared in this scope
  42.      CBigNum(signed char n)        { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
  43.                                                  ^
  44. bignum.h: In constructor 'CBigNum::CBigNum(short int)':
  45. bignum.h:89:49: error: 'BN_init' was not declared in this scope
  46.      CBigNum(short n)              { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
  47.                                                  ^
  48. bignum.h: In constructor 'CBigNum::CBigNum(int)':
  49. bignum.h:90:49: error: 'BN_init' was not declared in this scope
  50.      CBigNum(int n)                { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
  51.                                                  ^
  52. bignum.h: In constructor 'CBigNum::CBigNum(long int)':
  53. bignum.h:91:49: error: 'BN_init' was not declared in this scope
  54.      CBigNum(long n)               { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
  55.                                                  ^
  56. bignum.h: In constructor 'CBigNum::CBigNum(long long int)':
  57. bignum.h:92:49: error: 'BN_init' was not declared in this scope
  58.      CBigNum(long long n)          { BN_init(this); setint64(n); }
  59.                                                  ^
  60. bignum.h: In constructor 'CBigNum::CBigNum(unsigned char)':
  61. bignum.h:93:49: error: 'BN_init' was not declared in this scope
  62.      CBigNum(unsigned char n)      { BN_init(this); setulong(n); }
  63.                                                  ^
  64. bignum.h: In constructor 'CBigNum::CBigNum(short unsigned int)':
  65. bignum.h:94:49: error: 'BN_init' was not declared in this scope
  66.      CBigNum(unsigned short n)     { BN_init(this); setulong(n); }
  67.                                                  ^
  68. bignum.h: In constructor 'CBigNum::CBigNum(unsigned int)':
  69. bignum.h:95:49: error: 'BN_init' was not declared in this scope
  70.      CBigNum(unsigned int n)       { BN_init(this); setulong(n); }
  71.                                                  ^
  72. bignum.h: In constructor 'CBigNum::CBigNum(long unsigned int)':
  73. bignum.h:96:49: error: 'BN_init' was not declared in this scope
  74.      CBigNum(unsigned long n)      { BN_init(this); setulong(n); }
  75.                                                  ^
  76. bignum.h: In constructor 'CBigNum::CBigNum(long long unsigned int)':
  77. bignum.h:97:49: error: 'BN_init' was not declared in this scope
  78.      CBigNum(unsigned long long n) { BN_init(this); setuint64(n); }
  79.                                                  ^
  80. bignum.h: In constructor 'CBigNum::CBigNum(uint256)':
  81. bignum.h:98:49: error: 'BN_init' was not declared in this scope
  82.      explicit CBigNum(uint256 n)   { BN_init(this); setuint256(n); }
  83.                                                  ^
  84. bignum.h: In constructor 'CBigNum::CBigNum(const std::vector<unsigned char>&)':
  85. bignum.h:102:21: error: 'BN_init' was not declared in this scope
  86.          BN_init(this);
  87.                      ^
  88. bignum.h: In static member function 'static CBigNum CBigNum::randBignum(const CBigNum&)':
  89. bignum.h:113:39: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_rand_range(BIGNUM*, const BIGNUM*)'
  90.          if(!BN_rand_range(&ret, &range)){
  91.                                        ^
  92. bignum.h: In static member function 'static CBigNum CBigNum::RandKBitBigum(uint32_t)':
  93. bignum.h:125:35: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_rand(BIGNUM*, int, int, int)'
  94.          if(!BN_rand(&ret, k, -1, 0)){
  95.                                    ^
  96. bignum.h: In member function 'int CBigNum::bitSize() const':
  97. bignum.h:136:33: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_num_bits(const BIGNUM*)'
  98.          return  BN_num_bits(this);
  99.                                  ^
  100. bignum.h: In member function 'void CBigNum::setulong(long unsigned int)':
  101. bignum.h:142:33: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_set_word(BIGNUM*, long unsigned int)'
  102.          if (!BN_set_word(this, n))
  103.                                  ^
  104. bignum.h: In member function 'long unsigned int CBigNum::getulong() const':
  105. bignum.h:148:32: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'long unsigned int BN_get_word(const BIGNUM*)'
  106.          return BN_get_word(this);
  107.                                 ^
  108. bignum.h: In member function 'unsigned int CBigNum::getuint() const':
  109. bignum.h:153:32: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'long unsigned int BN_get_word(const BIGNUM*)'
  110.          return BN_get_word(this);
  111.                                 ^
  112. bignum.h: In member function 'int CBigNum::getint() const':
  113. bignum.h:158:43: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'long unsigned int BN_get_word(const BIGNUM*)'
  114.          unsigned long n = BN_get_word(this);
  115.                                            ^
  116. bignum.h:159:33: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_negative(const BIGNUM*)'
  117.          if (!BN_is_negative(this))
  118.                                  ^
  119. In file included from chainparams.h:9:0,
  120.                  from alert.cpp:7:
  121. bignum.h: In member function 'void CBigNum::setint64(int64_t)':
  122. bignum.h:205:37: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '3' to 'BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)'
  123.          BN_mpi2bn(pch, p - pch, this);
  124.                                      ^
  125. bignum.h: In member function 'uint64_t CBigNum::getuint64()':
  126. bignum.h:210:50: error: cannot convert 'CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_bn2mpi(const BIGNUM*, unsigned char*)'
  127.          unsigned int nSize = BN_bn2mpi(this, NULL);
  128.                                                   ^
  129. bignum.h:214:32: error: cannot convert 'CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_bn2mpi(const BIGNUM*, unsigned char*)'
  130.          BN_bn2mpi(this, &vch[0]);
  131.                                 ^
  132. bignum.h: In member function 'void CBigNum::setuint64(uint64_t)':
  133. bignum.h:247:37: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '3' to 'BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)'
  134.          BN_mpi2bn(pch, p - pch, this);
  135.                                      ^
  136. bignum.h: In member function 'void CBigNum::setuint256(uint256)':
  137. bignum.h:275:37: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '3' to 'BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)'
  138.          BN_mpi2bn(pch, p - pch, this);
  139.                                      ^
  140. bignum.h: In member function 'uint256 CBigNum::getuint256() const':
  141. bignum.h:280:50: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_bn2mpi(const BIGNUM*, unsigned char*)'
  142.          unsigned int nSize = BN_bn2mpi(this, NULL);
  143.                                                   ^
  144. bignum.h:284:32: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_bn2mpi(const BIGNUM*, unsigned char*)'
  145.          BN_bn2mpi(this, &vch[0]);
  146.                                 ^
  147. bignum.h: In member function 'void CBigNum::setvch(const std::vector<unsigned char>&)':
  148. bignum.h:306:46: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '3' to 'BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)'
  149.          BN_mpi2bn(&vch2[0], vch2.size(), this);
  150.                                               ^
  151. bignum.h: In member function 'std::vector<unsigned char> CBigNum::getvch() const':
  152. bignum.h:311:50: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_bn2mpi(const BIGNUM*, unsigned char*)'
  153.          unsigned int nSize = BN_bn2mpi(this, NULL);
  154.                                                   ^
  155. bignum.h:315:32: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_bn2mpi(const BIGNUM*, unsigned char*)'
  156.          BN_bn2mpi(this, &vch[0]);
  157.                                 ^
  158. bignum.h: In member function 'CBigNum& CBigNum::SetCompact(unsigned int)':
  159. bignum.h:329:44: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '3' to 'BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)'
  160.          BN_mpi2bn(&vch[0], vch.size(), this);
  161.                                             ^
  162. bignum.h: In member function 'unsigned int CBigNum::GetCompact() const':
  163. bignum.h:335:50: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_bn2mpi(const BIGNUM*, unsigned char*)'
  164.          unsigned int nSize = BN_bn2mpi(this, NULL);
  165.                                                   ^
  166. bignum.h:338:32: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_bn2mpi(const BIGNUM*, unsigned char*)'
  167.          BN_bn2mpi(this, &vch[0]);
  168.                                 ^
  169. bignum.h: In member function 'std::__cxx11::string CBigNum::ToString(int) const':
  170. bignum.h:383:35: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'void BN_set_negative(BIGNUM*, int)'
  171.          BN_set_negative(&bn, false);
  172.                                    ^
  173. bignum.h:386:29: error: cannot convert 'CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
  174.          if (BN_cmp(&bn, &bn0) == 0)
  175.                              ^
  176. bignum.h:388:32: error: cannot convert 'CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
  177.          while (BN_cmp(&bn, &bn0) > 0)
  178.                                 ^
  179. bignum.h:390:54: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
  180.              if (!BN_div(&dv, &rem, &bn, &bnBase, pctx))
  181.                                                       ^
  182. bignum.h:396:32: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_negative(const BIGNUM*)'
  183.          if (BN_is_negative(this))
  184.                                 ^
  185. bignum.h: In member function 'CBigNum CBigNum::pow(const CBigNum&) const':
  186. bignum.h:443:41: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_exp(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
  187.          if (!BN_exp(&ret, this, &e, pctx))
  188.                                          ^
  189. bignum.h: In member function 'CBigNum CBigNum::mul_mod(const CBigNum&, const CBigNum&) const':
  190. bignum.h:456:49: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_mod_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
  191.          if (!BN_mod_mul(&ret, this, &b, &m, pctx))
  192.                                                  ^
  193. bignum.h: In member function 'CBigNum CBigNum::pow_mod(const CBigNum&, const CBigNum&) const':
  194. bignum.h:474:56: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_mod_exp(BIGNUM*, const BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
  195.              if (!BN_mod_exp(&ret, &inv, &posE, &m, pctx))
  196.                                                         ^
  197. bignum.h:477:53: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_mod_exp(BIGNUM*, const BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
  198.              if (!BN_mod_exp(&ret, this, &e, &m, pctx))
  199.                                                      ^
  200. bignum.h: In member function 'CBigNum CBigNum::inverse(const CBigNum&) const':
  201. bignum.h:492:49: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'BIGNUM* BN_mod_inverse(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
  202.          if (!BN_mod_inverse(&ret, this, &m, pctx))
  203.                                                  ^
  204. bignum.h: In static member function 'static CBigNum CBigNum::generatePrime(unsigned int, bool)':
  205. bignum.h:505:81: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_generate_prime_ex(BIGNUM*, int, int, const BIGNUM*, const BIGNUM*, BN_GENCB*)'
  206.          if(!BN_generate_prime_ex(&ret, numBits, (safe == true), NULL, NULL, NULL))
  207.                                                                                  ^
  208. bignum.h: In member function 'CBigNum CBigNum::gcd(const CBigNum&) const':
  209. bignum.h:518:41: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_gcd(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
  210.          if (!BN_gcd(&ret, this, &b, pctx))
  211.                                          ^
  212. bignum.h: In member function 'bool CBigNum::isPrime(int) const':
  213. bignum.h:531:19: warning: 'int BN_is_prime(const BIGNUM*, int, void (*)(int, int, void*), BN_CTX*, void*)' is deprecated [-Wdeprecated-declarations]
  214.          int ret = BN_is_prime(this, checks, NULL, pctx, NULL);
  215.                    ^~~~~~~~~~~
  216. In file included from /usr/include/openssl/bn.h:31:0,
  217.                  from bignum.h:13,
  218.                  from chainparams.h:9,
  219.                  from alert.cpp:7:
  220. /usr/include/openssl/bn.h:291:1: note: declared here
  221.  DEPRECATEDIN_0_9_8(int
  222.  ^
  223. In file included from chainparams.h:9:0,
  224.                  from alert.cpp:7:
  225. bignum.h:531:61: warning: 'int BN_is_prime(const BIGNUM*, int, void (*)(int, int, void*), BN_CTX*, void*)' is deprecated [-Wdeprecated-declarations]
  226.          int ret = BN_is_prime(this, checks, NULL, pctx, NULL);
  227.                                                              ^
  228. In file included from /usr/include/openssl/bn.h:31:0,
  229.                  from bignum.h:13,
  230.                  from chainparams.h:9,
  231.                  from alert.cpp:7:
  232. /usr/include/openssl/bn.h:291:1: note: declared here
  233.  DEPRECATEDIN_0_9_8(int
  234.  ^
  235. In file included from chainparams.h:9:0,
  236.                  from alert.cpp:7:
  237. bignum.h:531:61: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_prime(const BIGNUM*, int, void (*)(int, int, void*), BN_CTX*, void*)'
  238.          int ret = BN_is_prime(this, checks, NULL, pctx, NULL);
  239.                                                              ^
  240. bignum.h: In member function 'bool CBigNum::isOne() const':
  241. bignum.h:539:30: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_one(const BIGNUM*)'
  242.          return BN_is_one(this);
  243.                               ^
  244. bignum.h: In member function 'bool CBigNum::operator!() const':
  245. bignum.h:545:31: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_zero(const BIGNUM*)'
  246.          return BN_is_zero(this);
  247.                                ^
  248. bignum.h: In member function 'CBigNum& CBigNum::operator+=(const CBigNum&)':
  249. bignum.h:550:35: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)'
  250.          if (!BN_add(this, this, &b))
  251.                                    ^
  252. bignum.h: In member function 'CBigNum& CBigNum::operator*=(const CBigNum&)':
  253. bignum.h:564:41: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
  254.          if (!BN_mul(this, this, &b, pctx))
  255.                                          ^
  256. bignum.h: In member function 'CBigNum& CBigNum::operator<<=(unsigned int)':
  257. bignum.h:583:41: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_lshift(BIGNUM*, const BIGNUM*, int)'
  258.          if (!BN_lshift(this, this, shift))
  259.                                          ^
  260. bignum.h: In member function 'CBigNum& CBigNum::operator>>=(unsigned int)':
  261. bignum.h:594:28: error: cannot convert 'CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
  262.          if (BN_cmp(&a, this) > 0)
  263.                             ^
  264. bignum.h:600:41: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_rshift(BIGNUM*, const BIGNUM*, int)'
  265.          if (!BN_rshift(this, this, shift))
  266.                                          ^
  267. bignum.h: In member function 'CBigNum& CBigNum::operator++()':
  268. bignum.h:609:47: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)'
  269.          if (!BN_add(this, this, BN_value_one()))
  270.                                                ^
  271. bignum.h: In member function 'CBigNum& CBigNum::operator--()':
  272. bignum.h:626:45: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)'
  273.          if (!BN_sub(&r, this, BN_value_one()))
  274.                                              ^
  275. bignum.h: In function 'const CBigNum operator+(const CBigNum&, const CBigNum&)':
  276. bignum.h:653:27: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)'
  277.      if (!BN_add(&r, &a, &b))
  278.                            ^
  279. bignum.h: In function 'const CBigNum operator-(const CBigNum&, const CBigNum&)':
  280. bignum.h:661:27: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)'
  281.      if (!BN_sub(&r, &a, &b))
  282.                            ^
  283. bignum.h: In function 'const CBigNum operator-(const CBigNum&)':
  284. bignum.h:669:43: error: cannot convert 'CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_negative(const BIGNUM*)'
  285.      BN_set_negative(&r, !BN_is_negative(&r));
  286.                                            ^
  287. bignum.h: In function 'const CBigNum operator*(const CBigNum&, const CBigNum&)':
  288. bignum.h:677:33: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
  289.      if (!BN_mul(&r, &a, &b, pctx))
  290.                                  ^
  291. bignum.h: In function 'const CBigNum operator/(const CBigNum&, const CBigNum&)':
  292. bignum.h:686:39: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
  293.      if (!BN_div(&r, NULL, &a, &b, pctx))
  294.                                        ^
  295. bignum.h: In function 'const CBigNum operator%(const CBigNum&, const CBigNum&)':
  296. bignum.h:695:35: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_nnmod(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
  297.      if (!BN_nnmod(&r, &a, &b, pctx))
  298.                                    ^
  299. bignum.h: In function 'const CBigNum operator<<(const CBigNum&, unsigned int)':
  300. bignum.h:703:33: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_lshift(BIGNUM*, const BIGNUM*, int)'
  301.      if (!BN_lshift(&r, &a, shift))
  302.                                  ^
  303. bignum.h: In function 'bool operator==(const CBigNum&, const CBigNum&)':
  304. bignum.h:715:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
  305.  inline bool operator==(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) == 0); }
  306.                                                                                    ^
  307. bignum.h: In function 'bool operator!=(const CBigNum&, const CBigNum&)':
  308. bignum.h:716:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
  309.  inline bool operator!=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) != 0); }
  310.                                                                                    ^
  311. bignum.h: In function 'bool operator<=(const CBigNum&, const CBigNum&)':
  312. bignum.h:717:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
  313.  inline bool operator<=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) <= 0); }
  314.                                                                                    ^
  315. bignum.h: In function 'bool operator>=(const CBigNum&, const CBigNum&)':
  316. bignum.h:718:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
  317.  inline bool operator>=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) >= 0); }
  318.                                                                                    ^
  319. bignum.h: In function 'bool operator<(const CBigNum&, const CBigNum&)':
  320. bignum.h:719:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
  321.  inline bool operator<(const CBigNum& a, const CBigNum& b)  { return (BN_cmp(&a, &b) < 0); }
  322.                                                                                    ^
  323. bignum.h: In function 'bool operator>(const CBigNum&, const CBigNum&)':
  324. bignum.h:720:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
  325.  inline bool operator>(const CBigNum& a, const CBigNum& b)  { return (BN_cmp(&a, &b) > 0); }
  326.                                                                                    ^
  327. makefile.unix:179: recipe for target 'obj/alert.o' failed
  328. make: *** [obj/alert.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement