]> git.ipfire.org Git - thirdparty/krb5.git/commit
Use krb5int_open_plugin for PKCS#11 module 1170/head
authorKen Hornstein <kenh@cmf.nrl.navy.mil>
Mon, 15 Mar 2021 02:18:53 +0000 (22:18 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 16 Mar 2021 20:07:01 +0000 (16:07 -0400)
commitc5c11839e02c7993eb78f2c94c75c10cf93f2195
tree1acdc47c459ffb2524aa6cac64b541c0b4de320a
parent3f99bcf91896cc10acb4dce53f6d5b9dd1873bc2
Use krb5int_open_plugin for PKCS#11 module

Instead of calling dlopen() directly, use the krb5 cross-platform
interfaces (krb5int_open_plugin()).

The goal here is to eventually support pkinit on Windows; this is just
the first small step in that direction.

[ghudson@mit.edu: fixed memory leak; changed type of p11_module field;
added intermediate sym variable for strict aliasing conformance;
simplified out pkinit_C_UnloadModule() wrapper]
src/plugins/preauth/pkinit/pkinit_clnt.c
src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
src/plugins/preauth/pkinit/pkinit_crypto_openssl.h
src/plugins/preauth/pkinit/pkinit_identity.c