aboutsummaryrefslogtreecommitdiff
path: root/dns/powerdns/files
diff options
context:
space:
mode:
Diffstat (limited to 'dns/powerdns/files')
-rw-r--r--dns/powerdns/files/patch-pdns_botan110signers.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/dns/powerdns/files/patch-pdns_botan110signers.cc b/dns/powerdns/files/patch-pdns_botan110signers.cc
new file mode 100644
index 000000000000..3331b5a5f738
--- /dev/null
+++ b/dns/powerdns/files/patch-pdns_botan110signers.cc
@@ -0,0 +1,15 @@
+https://github.com/PowerDNS/pdns/pull/5498/commits/0f8f34997afc2c3609b2f3df72ca808940d2a778#diff-a69f1deeeb9a0d7ebabc200a4c24c9f9L184
+--- pdns/botan110signers.cc.orig 2017-08-31 08:52:49 UTC
++++ pdns/botan110signers.cc
+@@ -181,8 +181,9 @@ std::string GOSTDNSCryptoKeyEngine::getP
+
+ std::string GOSTDNSCryptoKeyEngine::getPublicKeyString() const
+ {
+- const BigInt&x =d_key->public_point().get_affine_x();
+- const BigInt&y =d_key->public_point().get_affine_y();
++ std::shared_ptr<GOST_3410_PublicKey> pk = d_pubkey ? d_pubkey : d_key;
++ const BigInt&x =pk->public_point().get_affine_x();
++ const BigInt&y =pk->public_point().get_affine_y();
+
+ size_t part_size = std::max(x.bytes(), y.bytes());
+