aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/kdf/prf_x942
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-09-17 17:08:01 -0400
committerJack Lloyd <[email protected]>2015-09-17 17:08:01 -0400
commite2e0f8f2b595122c1f8acb3b3a46501f96a2b218 (patch)
treeaf5e031cb1f83fae45d59fc05c05185de1138f9a /src/lib/kdf/prf_x942
parentd83ef010522373a6f8ed3876c812b18b55513103 (diff)
Handle dependencies re static linking. GH #279
Previously we were hanging on the type destructors to pull in the relevant objects. However that fails in many simple cases where the object is never deleted. For every type involved in the algo registry add static create and providers functions to access the algo registry. Modify lookup.h to be inline and call those functions, and move a few to sub-headers (eg, get_pbkdf going to pbkdf.h). So accessing the registry involves going through the same file that handles the initialization, so there is no way to end up with missing objs.
Diffstat (limited to 'src/lib/kdf/prf_x942')
-rw-r--r--src/lib/kdf/prf_x942/prf_x942.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/kdf/prf_x942/prf_x942.cpp b/src/lib/kdf/prf_x942/prf_x942.cpp
index e8f234e49..443e207f2 100644
--- a/src/lib/kdf/prf_x942/prf_x942.cpp
+++ b/src/lib/kdf/prf_x942/prf_x942.cpp
@@ -5,12 +5,12 @@
* Botan is released under the Simplified BSD License (see license.txt)
*/
-#include <botan/internal/kdf_utils.h>
#include <botan/prf_x942.h>
#include <botan/der_enc.h>
#include <botan/oids.h>
#include <botan/hash.h>
#include <botan/loadstor.h>
+#include <botan/lookup.h>
#include <algorithm>
namespace Botan {