pkcs11Global.h revision e39dcb66a8982e582c65d60ded79dbb017c55944
0N/A/*
0N/A * CDDL HEADER START
0N/A *
0N/A * The contents of this file are subject to the terms of the
0N/A * Common Development and Distribution License, Version 1.0 only
0N/A * (the "License"). You may not use this file except in compliance
0N/A * with the License.
0N/A *
0N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A * or http://www.opensolaris.org/os/licensing.
0N/A * See the License for the specific language governing permissions
0N/A * and limitations under the License.
0N/A *
0N/A * When distributing Covered Code, include this CDDL HEADER in each
0N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A * If applicable, add the following below this CDDL HEADER, with the
0N/A * fields enclosed by brackets "[]" replaced with your own identifying
0N/A * information: Portions Copyright [yyyy] [name of copyright owner]
873N/A *
0N/A * CDDL HEADER END
0N/A */
0N/A/*
0N/A * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
0N/A * Use is subject to license terms.
761N/A */
0N/A
0N/A#ifndef _PKCS11_GLOBAL_H
2086N/A#define _PKCS11_GLOBAL_H
0N/A
0N/A#pragma ident "%Z%%M% %I% %E% SMI"
0N/A
0N/A#ifdef __cplusplus
0N/Aextern "C" {
0N/A#endif
0N/A
0N/A#include <thread.h>
0N/A#include <synch.h>
0N/A#include "pkcs11t.h"
0N/A
0N/Aextern boolean_t pkcs11_initialized;
1008N/Aextern boolean_t pkcs11_cant_create_threads;
1008N/Aextern boolean_t purefastpath;
1787N/Aextern boolean_t policyfastpath;
0N/Aextern boolean_t fini_called;
0N/Aextern CK_FUNCTION_LIST_PTR fast_funcs;
0N/Aextern CK_SLOT_ID fast_slot;
0N/A
0N/A#define PKCS11_STRING_LENGTH 32
0N/A
261N/A/* CK_INFO: Information about cryptoki */
0N/A#define CRYPTOKI_VERSION_MAJOR 2
0N/A#define CRYPTOKI_VERSION_MINOR 20
0N/A#define CRYPTOKI_VERSION_WARN_MINOR 10
0N/A#define MANUFACTURER_ID "Sun Microsystems, Inc. "
338N/A#define LIBRARY_DESCRIPTION "Sun Crypto PKCS#11 Library "
0N/A#define LIBRARY_VERSION_MAJOR 1
0N/A#define LIBRARY_VERSION_MINOR 1
338N/A
338N/A/* CK_SLOT_INFO */
0N/A#define HARDWARE_VERSION_MAJOR 0
0N/A#define HARDWARE_VERSION_MINOR 0
1400N/A#define FIRMWARE_VERSION_MAJOR 0
1400N/A#define FIRMWARE_VERSION_MINOR 0
868N/A
2086N/A#ifdef __cplusplus
2086N/A}
0N/A#endif
0N/A
0N/A#endif /* _PKCS11_GLOBAL_H */
0N/A