Don't build most of the pkcs11 module if there are no dlopen().

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18046 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-09-07 09:07:15 +00:00
parent ea514adfd7
commit 2fc4f25c93

View File

@@ -33,7 +33,11 @@
#include "hx_locl.h"
RCSID("$Id$");
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>
#endif
#ifdef HAVE_DLOPEN
#include "pkcs11u.h"
#include "pkcs11.h"
@@ -1155,8 +1159,12 @@ static struct hx509_keyset_ops keyset_pkcs11 = {
p11_printinfo
};
#endif /* HAVE_DLOPEN */
void
_hx509_ks_pkcs11_register(hx509_context context)
{
#ifdef HAVE_DLOPEN
_hx509_ks_register(context, &keyset_pkcs11);
#endif
}