00001 /* 00002 * Copyright (c) 2005-2007 Alon Bar-Lev <alon.barlev@gmail.com> 00003 * All rights reserved. 00004 * 00005 * This software is available to you under a choice of one of two 00006 * licenses. You may choose to be licensed under the terms of the GNU 00007 * General Public License (GPL) Version 2, or the BSD license. 00008 * 00009 * GNU General Public License (GPL) Version 2 00010 * =========================================== 00011 * This program is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License version 2 00013 * as published by the Free Software Foundation. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program (see the file COPYING.GPL included with this 00022 * distribution); if not, write to the Free Software Foundation, Inc., 00023 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00024 * 00025 * BSD License 00026 * ============ 00027 * Redistribution and use in source and binary forms, with or without 00028 * modification, are permitted provided that the following conditions are met: 00029 * 00030 * o Redistributions of source code must retain the above copyright notice, 00031 * this list of conditions and the following disclaimer. 00032 * o Redistributions in binary form must reproduce the above copyright 00033 * notice, this list of conditions and the following disclaimer in the 00034 * documentation and/or other materials provided with the distribution. 00035 * o Neither the name of the <ORGANIZATION> nor the names of its 00036 * contributors may be used to endorse or promote products derived from 00037 * this software without specific prior written permission. 00038 * 00039 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00040 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00041 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00042 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00043 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00044 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00045 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00046 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00047 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00048 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00049 * POSSIBILITY OF SUCH DAMAGE. 00050 */ 00051 00058 #ifndef __PKCS11H_DEF_H 00059 #define __PKCS11H_DEF_H 00060 00061 #include <time.h> 00062 #if !defined(_WIN32) 00063 #include <sys/time.h> 00064 #endif 00065 00066 #if defined(__cplusplus) 00067 extern "C" { 00068 #endif 00069 00070 #if !defined(IN) 00071 #define IN 00072 #endif 00073 #if !defined(OUT) 00074 #define OUT 00075 #endif 00076 00077 #if defined(PKCS11H_USE_CYGWIN) 00078 #define CRYPTOKI_FORCE_WIN32 00079 #endif 00080 #include <pkcs11-helper-1.0/pkcs11.h> 00081 00082 typedef int PKCS11H_BOOL; 00083 00084 #ifdef __cplusplus 00085 } 00086 #endif 00087 00088 #endif /* __PKCS11H_DEF_H */
pkcs11-helper, Copyright (C) Alon Bar-Lev <alon.barlev@gmail.com> | ![]() |