more debug log; refs #11
This commit is contained in:
@@ -525,20 +525,26 @@ namespace openssl {
|
||||
public:
|
||||
BigNum():
|
||||
_bn(BN_new()) {
|
||||
OPENSSL_LOG("log");
|
||||
}
|
||||
BigNum(const std::string& num):
|
||||
_bn(BN_bin2bn((const unsigned char*)num.data(), num.size(), 0)) {
|
||||
OPENSSL_LOG("log");
|
||||
}
|
||||
~BigNum() {
|
||||
OPENSSL_LOG("log");
|
||||
BN_free(_bn);
|
||||
}
|
||||
int size() const {
|
||||
OPENSSL_LOG("log");
|
||||
return size(_bn);
|
||||
}
|
||||
static int size(BIGNUM* n) {
|
||||
OPENSSL_LOG("log");
|
||||
return BN_num_bytes(n);
|
||||
}
|
||||
std::string string() const {
|
||||
OPENSSL_LOG("log");
|
||||
return string(_bn);
|
||||
}
|
||||
static std::string string(BIGNUM* a) {
|
||||
|
Reference in New Issue
Block a user