From e2e0f8f2b595122c1f8acb3b3a46501f96a2b218 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Thu, 17 Sep 2015 17:08:01 -0400 Subject: 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. --- src/lib/kdf/prf_tls/prf_tls.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/kdf/prf_tls') diff --git a/src/lib/kdf/prf_tls/prf_tls.cpp b/src/lib/kdf/prf_tls/prf_tls.cpp index ef130d5ba..08a2a0899 100644 --- a/src/lib/kdf/prf_tls/prf_tls.cpp +++ b/src/lib/kdf/prf_tls/prf_tls.cpp @@ -5,9 +5,10 @@ * Botan is released under the Simplified BSD License (see license.txt) */ -#include #include #include +#include +#include namespace Botan { -- cgit v1.2.3