OpenSSL API hacks
[novacoin.git] / src / base58.cpp
index dc813ab..f81ebf0 100644 (file)
@@ -48,7 +48,7 @@ std::string EncodeBase58(const unsigned char* pbegin, const unsigned char* pend)
     CBigNum rem;
     while (bn > bn0)
     {
-        if (!BN_div(&dv, &rem, &bn, &bn58, pctx))
+        if (!BN_div(dv.get(), rem.get(), bn.get(), bn58.get(), pctx))
             throw bignum_error("EncodeBase58 : BN_div failed");
         bn = dv;
         unsigned int c = rem.getuint32();
@@ -95,7 +95,7 @@ bool DecodeBase58(const char* psz, std::vector<unsigned char>& vchRet)
             break;
         }
         bnChar.setuint32((uint32_t)(p1 - pszBase58));
-        if (!BN_mul(&bn, &bn, &bn58, pctx))
+        if (!BN_mul(bn.get(), bn.get(), bn58.get(), pctx))
             throw bignum_error("DecodeBase58 : BN_mul failed");
         bn += bnChar;
     }