]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
with thanks to Jack Lloyd, this works around the default Botan allocator slowing...
authorbert hubert <bert.hubert@netherlabs.nl>
Sat, 13 Dec 2014 14:43:12 +0000 (15:43 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Sat, 13 Dec 2014 14:43:12 +0000 (15:43 +0100)
pdns/botansigners.cc

index 50475737ea0ee3d372dcc5429d4d188e2c1e6b75..bc1c4a72713d168dc434d17d2e79e50c6d561eee 100644 (file)
@@ -254,10 +254,10 @@ struct LoaderBotanStruct
 {
   LoaderBotanStruct()
   {
-    if(getenv("NOBOTAN"))
-      return;
     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);