/*
* Copyright (C) 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id$ */
/*! \file */
#include <config.h>
#include <string.h>
#include <dlfcn.h>
#include <pkcs11/cryptoki.h>
#define KEEP_PKCS11_NAMES
#include <pk11/internal.h>
return (CKR_LIBRARY_ALREADY_INITIALIZED);
"dlopen(\"%s\") failed: %s\n",
pk11_get_lib_name(), dlerror());
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
char *pk11_get_load_error_message(void) {
return (loaderrmsg);
}
return (CKR_LIBRARY_FAILED_TO_LOAD);
return (CKR_SYMBOL_RESOLUTION_FAILED);
return (CKR_LIBRARY_FAILED_TO_LOAD);
return (rv);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
"C_GetMechanismInfo");
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
"dlopen(\"%s\") failed: %s\n",
pk11_get_lib_name(), dlerror());
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
"C_GetAttributeValue");
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
"C_SetAttributeValue");
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
"C_FindObjectsFinal");
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
phKey);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}
{
return (CKR_LIBRARY_FAILED_TO_LOAD);
}
return (CKR_SYMBOL_RESOLUTION_FAILED);
}