======================================================================== PyKCS11 - PKCS#11 Wrapper for Python - Project Overview ======================================================================== Authors """"""" - Copyright (C) 2004 Midori (midori -- a-t -- paipai dot net) - Copyright (C) 2006-2008 Ludovic Rousseau (ludovic.rousseau@free.fr) Licence """"""" This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Unix Howto """""""""" $ make build $ make install (or make install DESTDIR=/foo/bar) Windows Howto """"""""""""" Please use the VS.NET 2003 project to build the library. Known Bugs """""""""" Current version should be compiled using SWIG 1.3.27. Using 1.3.28+ an error similar to may be generated by the compiler: src\win32_pykcs11_wrap.cpp error C2440: 'static_cast' : cannot convert from 'char *' to 'unsigned char *' The precompiled wrapper included in distribution is being generated using SWIG 1.3.27. If in Windows the linker complains that the Python24_d.lib doesn't exists Please edit the "SWIG-Install-Dir\Lib\python\python.swg" file and replace following line: #include "Python.h" with following code: #ifdef _DEBUG #undef _DEBUG #include "Python.h" #define _DEBUG #else #include "Python.h" #endif This prevents the linker to try to link against the debug version of python lib that doesn't come with the standard distribution. History """"""" 1.2.2 - June 2010, Ludovic Rousseau Debug low level C_GenerateRandom Add seedRandom() and generateRandom() in the high level API 1.2.1 - November 2008, Ludovic Rousseau Use src/opensc/pkcs11.h instead of src/rsaref/* files since the files from RSA are not free enough (no right to distribute modified versions for example) improve samples/getinfo.py script bug fixes 1.2.0 - August 2008, Ludovic Rousseau add getMechanismList() and getMechanismInfo() add Session().getSessionInfo() bug fixes 1.1.1 - December 2006, Giuseppe Amato (Midori) bug fixes 1.1.0 - August 2006, Ludovic Rousseau Introduce high level API 1.0.2 - July 2006, Ludovic Rousseau port to Unix (tested on GNU/Linux only) explicit call to SWIG to generate the wrapper 1.0.1 - 2004 Giuseppe Amato (Midori) first version Windows only