Permalink
Browse files

with thanks to Jack Lloyd, this works around the default Botan alloca…

…tor slowing down for us during production use.
  • Loading branch information...
1 parent 96963e2 commit d71a712b3c7d180db970ef849960fe59ebc21a74 @ahupowerdns ahupowerdns committed with mind04 Dec 13, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 pdns/botansigners.cc
@@ -255,6 +255,8 @@ struct LoaderBotanStruct
{
new Botan::LibraryInitializer("thread_safe=true");
// this leaks, but is fine
+ Botan::global_state().set_default_allocator("malloc"); // the other Botan allocator slows down for us
+
DNSCryptoKeyEngine::report(5, &BotanRSADNSCryptoKeyEngine::maker);
DNSCryptoKeyEngine::report(7, &BotanRSADNSCryptoKeyEngine::maker);
DNSCryptoKeyEngine::report(8, &BotanRSADNSCryptoKeyEngine::maker);

0 comments on commit d71a712

Please sign in to comment.