more debug log; refs #11

master
Marc Wäckerlin 14 years ago
parent 321e0a7742
commit 980c9d0e09
  1. 6
      src/openssl.hxx

@ -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) {

Loading…
Cancel
Save