Lines Matching defs:plugin

107 	KMF_PLUGIN *plugin;
151 /* Call the plugin to do the work. */
157 plugin = FindPlugin(handle, kstype);
158 if (plugin == NULL || plugin->funclist->FindPrikeyByCert == NULL)
161 return (plugin->funclist->FindPrikeyByCert(handle, numattr, attrlist));
247 KMF_PLUGIN *plugin;
272 plugin = FindPlugin(handle, kstype);
273 if (plugin == NULL || plugin->funclist->FindCert == NULL)
276 return (plugin->funclist->FindCert(handle, numattr, attrlist));
660 KMF_PLUGIN *plugin;
766 /* Now call the plugin function to sign it */
767 plugin = FindPlugin(handle, sign_key_ptr->kstype);
768 if (plugin == NULL || plugin->funclist->SignData == NULL) {
773 ret = plugin->funclist->SignData(handle, sign_key_ptr, oid, tbs_data,
782 if (plugin->type == KMF_KEYSTORE_NSS &&
831 KMF_PLUGIN *plugin;
936 plugin = FindPlugin(handle, kstype);
937 if (plugin != NULL &&
938 plugin->funclist->EncodePubkeyData != NULL) {
939 ret = plugin->funclist->EncodePubkeyData(handle,
987 KMF_PLUGIN *plugin;
1033 plugin = FindPlugin(handle, KMFKey->kstype);
1034 if (plugin != NULL && plugin->funclist->EncodePubkeyData !=
1036 ret = plugin->funclist->EncodePubkeyData(handle,
1154 * Encrypt using the crypto framework (not the KMF plugin mechanism).
1177 KMF_PLUGIN *plugin;
1261 plugin = FindPlugin(handle, prikey.kstype);
1263 if (plugin != NULL && plugin->funclist->DecryptData != NULL) {
1264 ret = plugin->funclist->DecryptData(handle,
1285 KMF_PLUGIN *plugin;
1312 plugin = FindPlugin(handle, kstype);
1313 if (plugin == NULL || plugin->funclist->StoreCert == NULL)
1316 return (plugin->funclist->StoreCert(handle, numattr, attrlist));
1322 KMF_PLUGIN *plugin;
1349 plugin = FindPlugin(handle, kstype);
1350 if (plugin == NULL || plugin->funclist->ImportCert == NULL)
1353 return (plugin->funclist->ImportCert(handle, numattr, attrlist));
1360 KMF_PLUGIN *plugin;
1384 plugin = FindPlugin(handle, kstype);
1385 if (plugin == NULL || plugin->funclist->DeleteCert == NULL)
1388 return (plugin->funclist->DeleteCert(handle, numattr, attrlist));
2834 KMF_PLUGIN *plugin;
2861 plugin = FindPlugin(handle, kstype);
2862 if (plugin == NULL || plugin->funclist->ExportPK12 == NULL)
2865 return (plugin->funclist->ExportPK12(handle, numattr, attrlist));
2875 KMF_PLUGIN *plugin;
2887 plugin = FindPlugin(handle, KMF_KEYSTORE_OPENSSL);
2888 if (plugin == NULL || plugin->dldesc == NULL) {
2892 buildpk12 = (KMF_RETURN(*)())dlsym(plugin->dldesc,
2912 KMF_PLUGIN *plugin;
2925 * Use the Keypair reader from the OpenSSL plugin.
2927 plugin = FindPlugin(handle, KMF_KEYSTORE_OPENSSL);
2928 if (plugin == NULL || plugin->dldesc == NULL) {
2932 import_objects = (KMF_RETURN(*)())dlsym(plugin->dldesc,