s4:heimdal: import lorikeet-heimdal-201009250123 (commit 42cabfb5b683dbcb97d583c397b8...
[mat/samba.git] / source4 / heimdal / lib / hx509 / ks_p11.c
index 52697f834b25192c207e139fe0c2045928eac396..23f6a4826a601292a7194c1d5ad29679080d170f 100644 (file)
@@ -835,7 +835,7 @@ p11_init(hx509_context context,
        goto out;
     }
 
-    getFuncs = dlsym(p->dl_handle, "C_GetFunctionList");
+    getFuncs = (CK_C_GetFunctionList) dlsym(p->dl_handle, "C_GetFunctionList");
     if (getFuncs == NULL) {
        ret = HX509_PKCS11_LOAD;
        hx509_set_error_string(context, 0, ret,
@@ -1139,7 +1139,6 @@ p11_printinfo(hx509_context context,
                MECHNAME(CKM_SHA256, "sha256");
                MECHNAME(CKM_SHA_1, "sha1");
                MECHNAME(CKM_MD5, "md5");
-               MECHNAME(CKM_MD2, "md2");
                MECHNAME(CKM_RIPEMD160, "ripemd-160");
                MECHNAME(CKM_DES_ECB, "des-ecb");
                MECHNAME(CKM_DES_CBC, "des-cbc");