debian/0000755000000000000000000000000012034501106007156 5ustar debian/copyright0000644000000000000000000003411311732200427011121 0ustar Author: Kent Yoder Download: http://opencryptoki.sourceforge.net/ Files: * Copyright: (C) 2001-2009 IBM, Corp. (C) 2000-2003 Corrent, Corp. License: CPL THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. . 1. DEFINITIONS . "Contribution" means: . a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and . b) in the case of each subsequent Contributor: . i) changes to the Program, and . ii) additions to the Program; . where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program. . "Contributor" means any person or entity that distributes the Program. . "Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program. . "Program" means the Contributions distributed in accordance with this Agreement. . "Recipient" means anyone who receives the Program under this Agreement, including all Contributors. . 2. GRANT OF RIGHTS . a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form. . b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder. . c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program. . d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement. . 3. REQUIREMENTS . A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that: . a) it complies with the terms and conditions of this Agreement; and . b) its license agreement: . i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose; . ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits; . iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and . iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange. . When the Program is made available in source code form: . a) it must be made available under this Agreement; and . b) a copy of this Agreement must be included with each copy of the Program. . Contributors may not remove or alter any copyright notices contained within the Program. . Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution. . 4. COMMERCIAL DISTRIBUTION . Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. . For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages. . 5. NO WARRANTY . EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations. . 6. DISCLAIMER OF LIABILITY . EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. . 7. GENERAL . If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. . If Recipient institutes patent litigation against a Contributor with respect to a patent applicable to software (including a cross-claim or counterclaim in a lawsuit), then any patent licenses granted by that Contributor to such Recipient under this Agreement shall terminate as of the date such litigation is filed. In addition, if Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. . All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. . Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. IBM is the initial Agreement Steward. IBM may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. . This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation. Files: usr/lib/pkcs11/aep_stdll/* Copyright: (C) 1999-2002 AEP Systems Ltd. License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. Neither the name of AEP Systems Ltd. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: (C) 2007-2009 Daniel Baumann License: GPL-2+ This program 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 Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2 file. debian/uscan-dfsg-clean.sh0000644000000000000000000000070011732200427012627 0ustar #!/bin/sh set -e #command --upstream-version version filename [ $# -eq 3 ] || exit 255 version="$2" filename="$3" dfsgfilename=`echo $3 | sed 's,\.orig\.,+dfsg.orig.,'` tar xfz ${filename} dir=`tar tfz ${filename} | head -1 | sed -e 's,^\./,,g;s,/.*,,g'` rm -f ${filename} rm -rf ${dir}/testcases rm -rf ${dir}/doc mv ${dir} ${dir}+dfsg tar cf - ${dir}+dfsg | gzip -9 > ${dfsgfilename} rm -rf ${dir}+dfsg echo "${dfsgfilename} created." debian/libopencryptoki0.install0000644000000000000000000000023411732200515014046 0ustar /usr/lib/*.so.* /usr/lib/opencryptoki/*.so.* /usr/lib/opencryptoki/methods /usr/lib/opencryptoki/stdll/*.so.* /usr/lib/pkcs11/methods /usr/lib/pkcs11/stdll debian/source/0000755000000000000000000000000011732200755010470 5ustar debian/source/format0000644000000000000000000000001411732200427011672 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000002027512034501106011036 0ustar opencryptoki (2.3.1+dfsg-3ubuntu5) quantal; urgency=low * Rebuild for new armel compiler default of ARMv5t. -- Colin Watson Mon, 08 Oct 2012 08:35:34 +0100 opencryptoki (2.3.1+dfsg-3ubuntu4) precise; urgency=low * Previous upload didn't revert everything... actually do it now. (LP: #960546) -- Stéphane Graber Tue, 20 Mar 2012 18:14:49 -0400 opencryptoki (2.3.1+dfsg-3ubuntu3) precise; urgency=low * Revert all previous changes and just ship a .links doing the right thing. (LP: #926305) -- Stéphane Graber Tue, 20 Mar 2012 13:49:02 -0400 opencryptoki (2.3.1+dfsg-3ubuntu2) precise; urgency=low * Revert most of the previous change, restricting it to just /usr/lib so we don't end up with files conflicting between packages. -- Stéphane Graber Tue, 13 Mar 2012 22:24:15 -0400 opencryptoki (2.3.1+dfsg-3ubuntu1) precise; urgency=low * Use *.so* instead of *.so.* in libopencryptoki0.install to also install the symlinks. (LP: #926305) -- Stéphane Graber Tue, 13 Mar 2012 11:29:13 -0400 opencryptoki (2.3.1+dfsg-3) unstable; urgency=low * QA upload. * Fix pkcs11_startup module paths (Closes: #641080) -- Guido Trotter Sat, 10 Sep 2011 09:20:39 +0100 opencryptoki (2.3.1+dfsg-2) unstable; urgency=low * QA upload. * Add patch to reset TPM datastructures on init, and not just logout, fixes TPM token reinitialization failure on reload. Thanks to David Smith for the patch (Closes: #603104, LP: #645576) -- Alessio Treglia Tue, 26 Jul 2011 12:18:45 +0200 opencryptoki (2.3.1+dfsg-1) unstable; urgency=low * QA upload. [ Johann Felix Soden ] * New upstream release * Solving a FTBFS on GNU/kFreeBSD (Closes: #559405). - thanks to Cyril Brulebois for the prospective patch. * debian/rules: - Do no install /etc/ld.so.conf.d/opencryptoki-i486.conf - Creating instead soft-links in /usr/lib * Depending on autoconf, automake, libtool because of new upstream build procedure. * Adding small man-page for pkcs_slot and missing whereis entries. * Improving init script according to lintian. * Fixing wrong year in debian/copyright. * Adding get-orig-source target to debian/rules. * Adding watch file. * Removing the unnecessary "for Linux" from package descriptions. [ Alessio Treglia ] * Fix dangling symlinks in /usr/lib/pkcs11/ (Closes: #570527). -- Johann Felix Soden Sun, 05 Jun 2011 11:22:04 +0200 opencryptoki (2.2.8+dfsg-5) unstable; urgency=low * QA upload. * Get rid of unneeded *.la files (Closes: #622435). * Switch to 3.0 (quilt) format. * Bump debhelper build-dep to (>= 7.0.50~). * Use DH's autotools_dev addon to update config.{guess,sub} files rather than copy&and restore them in debian/rules. * Fix lintian "binary-control-field-duplicates-source field section in package opencryptoki" warning. * Bump Standards. -- Alessio Treglia Fri, 03 Jun 2011 12:23:26 +0200 opencryptoki (2.2.8+dfsg-4) unstable; urgency=low * QA upload * Add root to the pkcs11 group (closes: #567572) -- Andrew Pollock Mon, 08 Feb 2010 09:37:15 -0800 opencryptoki (2.2.8+dfsg-3) unstable; urgency=low * Removing vcs fields. * Orphaning package. -- Daniel Baumann Thu, 27 Aug 2009 16:25:14 +0200 opencryptoki (2.2.8+dfsg-2) unstable; urgency=low * Updating maintainer field. * Updating vcs fields. * Updating package to standards version 3.8.2. * Sorting and updating depends. * Tidy debhelper install file. * Wrapping patch description in dlopen-soname.patch. * Minimizing rules file. -- Daniel Baumann Fri, 14 Aug 2009 12:19:39 +0200 opencryptoki (2.2.8+dfsg-1) unstable; urgency=low * Merging upstream version 2.2.8+dfsg. * Correcting wrong libdir information. -- Daniel Baumann Sun, 17 May 2009 15:51:08 +0200 opencryptoki (2.2.7+dfsg-1) unstable; urgency=low * Merging upstream version 2.2.7+dfsg. * Using correct rfc-2822 date formats in changelog. * Updating package to standards 3.8.1. * Removing old conflicts and replaces. * Using quilt rather than dpatch. * Updating section of debug packages. * Updating year in copyright file. * Updating rules to current state of the art. -- Daniel Baumann Sun, 17 May 2009 14:41:13 +0200 opencryptoki (2.2.6+dfsg2-1) unstable; urgency=low * Replacing obsolete dh_clean -k with dh_prep. * Merging upstream version 2.2.6+dfsg2. -- Daniel Baumann Fri, 07 Nov 2008 23:09:00 +0100 opencryptoki (2.2.6+dfsg-5) unstable; urgency=low * Updating vcs fields in control file. * Using patch-stamp rather than patch in rules file. * Adding patch from David Smith to add command line arguments for logging, verbosity, and daemonizing pkcsslotd. -- Daniel Baumann Sat, 11 Oct 2008 20:01:00 +0200 opencryptoki (2.2.6+dfsg-4) unstable; urgency=medium * Don't FTBFS if automake is installed (Closes: #463760). -- Daniel Baumann Wed, 03 Sep 2008 10:54:00 +0200 opencryptoki (2.2.6+dfsg-3) unstable; urgency=medium * Removing accidentally double files from libopencryptoki and opencryptoki (Closes: #492156). -- Daniel Baumann Sun, 03 Aug 2008 15:19:00 +0200 opencryptoki (2.2.6+dfsg-2) unstable; urgency=medium * Applying patch from Philipp Matthias Hahn to correct init script and stop pkcsslotd (Closes: #463763). * Adding conflicts/replaces against previous version in order to allow upgrades from pre-frozen lenny to frozen/final lenny (Closes: #492156). -- Daniel Baumann Sun, 27 Jul 2008 19:24:00 +0200 opencryptoki (2.2.6+dfsg-1) unstable; urgency=medium * Moving soname-independent symlinks for private library modules from libopencryptoki0 to opencryptoki * Updating 01-disable-testcases.dpatch for new upstream version. * Merging upstream version 2.2.6+dfsg. -- Daniel Baumann Thu, 17 Jul 2008 23:12:00 +0200 opencryptoki (2.2.5+dfsg-2) unstable; urgency=high * Adding dh_link call in rules in order to get symlinks policy compliant. * Calling pkcs11_startup unconditionally in initscript (Closes: #459683). * Adding patch to the executables to open libopencryptoki with soname major (Closes: #463593). * Adding build-conflicts against automake1.9 (Closes: #463760). * Using less alarming 'skipping' rather than 'aborting' when not starting the daemon through the initscript. * Avoiding doublicated start-stop-daemon calls in restart section of the initscript. * Correcting start-stop-daemon call in order to create and use a pidfile in the initscript (Closes: #463763). * Updating cross handling in rules. * Moving soname-independent symlinks for private library modules from libopencryptoki-dev to libopencryptoki0 (Closes: #481453). * Updating to standards 3.8.0. * Reordering rules file. * Using lintian debhelper to install lintian overrides. * Rewriting copyright file in machine-interpretable format. * Adding vcs fields in control file. * Upgrading package to debhelper 7. * Reverting config.guess and config.sub to upstream. * Don't fail on removing non-empty group in postrm (Closes: #463764). -- Daniel Baumann Wed, 02 Jul 2008 11:51:00 +0200 opencryptoki (2.2.5+dfsg-1) unstable; urgency=low * New upstream release (Closes: #459684). -- Daniel Baumann Tue, 08 Jan 2008 07:01:00 +0100 opencryptoki (2.2.4.1+dfsg-2) unstable; urgency=low * Fixed changelog line wrapping. * Added manpages based on doc/*. * Added patch from William Lima to disable user handling in pkcs11_startup. -- Daniel Baumann Thu, 27 Dec 2007 13:19:00 +0100 opencryptoki (2.2.4.1+dfsg-1) unstable; urgency=low * Initial release (Closes: #409586). * Rebuild upstream tarball without testcases (contains some unlicensed files), and a pdf in doc (missing source). -- Daniel Baumann Wed, 05 Dec 2007 23:18:00 +0100 debian/watch0000644000000000000000000000021611732200427010214 0ustar version=3 opts=dversionmangle=s/\+dfsg$// \ http://sf.net/opencryptoki/opencryptoki-(.*)\.tar\.gz \ debian /bin/sh debian/uscan-dfsg-clean.sh debian/libopencryptoki-dev.install0000644000000000000000000000005111732200427014541 0ustar /usr/include /usr/lib/opencryptoki/*.so debian/opencryptoki.docs0000644000000000000000000000003011732200427012555 0ustar AUTHORS FAQ README TODO debian/opencryptoki.install0000644000000000000000000000012011732200427013273 0ustar /usr/sbin /usr/share/man /usr/lib/opencryptoki/stdll/*.so /var/lib/opencryptoki debian/opencryptoki.init0000644000000000000000000000232611732200427012602 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: pkcsslotd opencryptoki # Required-Start: $local_fs $remote_fs # Required-Stop: $local_fs $remote_fs # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: starts pkcsslotd # Description: pkcsslotd belongs to opencryptoki ### END INIT INFO PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/pkcsslotd NAME=pkcsslotd DESC="PKCS#11 slot daemon" PIDFILE=/var/lib/opencryptoki/.slotpid test -x "$DAEMON" || exit 0 set -e case "${1}" in start) echo -n "Starting $DESC: " /usr/sbin/pkcs11_startup start-stop-daemon --start --quiet --pidfile "$PIDFILE" --exec "$DAEMON" -- $DAEMON_OPTS echo "$NAME." ;; stop) echo -n "Stopping $DESC: " start-stop-daemon --stop --oknodo --quiet --pidfile "$PIDFILE" --exec "$DAEMON" rm -f "$PIDFILE" echo "$NAME." ;; restart|force-reload) "${0}" stop sleep 1 "${0}" start ;; status) if start-stop-daemon --stop --signal 0 --quiet --pidfile "$PIDFILE" --exec "$DAEMON" then echo "$NAME is running." else echo "$NAME is not running." exit 1 fi ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|restart|force-reload|status}" >&2 exit 1 ;; esac exit 0 debian/patches/0000755000000000000000000000000011732200755010617 5ustar debian/patches/series0000644000000000000000000000047511732200427012036 0ustar 01-disable-testcases.patch 02-disable-user-handling.patch 03-dlopen-soname.patch 04-pkcsslotd-cmdline-args.patch 05-build-fix-for-kbsd.patch 06-add-whatis-entry-to-manpages.patch 07-add-manpage-for-pkcs_slot.patch 08-reset-tpm-structures.patch 0009-Fix-wrong-LIB_PATH.patch 0010-Remove-one-hardcoded-lib64-path.patch debian/patches/04-pkcsslotd-cmdline-args.patch0000644000000000000000000001535611732200427016440 0ustar Author: David Smith Description: Add command line arguments for logging, verbosity, and daemonizing. Allow logging to files, only useful for debugging but controllable at runtime, not compile time. diff -Naurp opencryptoki.orig/usr/sbin/pkcsslotd/daemon.c opencryptoki/usr/sbin/pkcsslotd/daemon.c --- opencryptoki.orig/usr/sbin/pkcsslotd/daemon.c 2008-10-11 17:30:02.000000000 +0000 +++ opencryptoki/usr/sbin/pkcsslotd/daemon.c 2008-10-18 17:00:44.000000000 +0000 @@ -310,6 +310,13 @@ BOOL IsDaemon ( void ) { } +BOOL SetDaemon ( BOOL Val ) { + BOOL OldVal = Daemon; + + Daemon = Val; + return OldVal; +} + BOOL SaveStartupDirectory ( char *Arg0 ) { diff -Naurp opencryptoki.orig/usr/sbin/pkcsslotd/log.c opencryptoki/usr/sbin/pkcsslotd/log.c --- opencryptoki.orig/usr/sbin/pkcsslotd/log.c 2008-10-11 17:30:02.000000000 +0000 +++ opencryptoki/usr/sbin/pkcsslotd/log.c 2008-10-18 17:00:44.000000000 +0000 @@ -791,7 +791,6 @@ BOOL PKCS_Log ( pLogHandle phLog, char * /* Don't log to a separate log file in production mode */ - #ifdef DEV if ( pInfo->Filename != NULL ) { FILE *fd; @@ -811,8 +810,6 @@ BOOL PKCS_Log ( pLogHandle phLog, char * } } /* end if pInfo->Filename */ - #endif /* DEV */ - /* Always log to syslog, if we're using it */ @@ -957,6 +954,46 @@ void InfoLog ( char *Format, ... ) { } +/*********************************************************************** + * SetLogFile - + * + * Sets a static log file. Must be called before InitLogging. + ***********************************************************************/ +void SetLogFile ( const char *LogFile ) { + char *New_LogFile; + int i; + + if (NULL == LogFile) + return; + + /* this is never freed */ + New_LogFile = strdup(LogFile); + for ( i = 0; i < ( sizeof(SystemLogFacilities) / (sizeof(SystemLogFacilities[0])) ); i++ ) { + SystemLogFacilities[i].Filename = New_LogFile; + } +} + +/*********************************************************************** + * SetProgramName - + * + * Sets the program name for logging. + ***********************************************************************/ +void SetProgramName ( const char *New_ProgramName ) { + if (NULL == New_ProgramName) + return; + + /* this is never freed */ + ProgramName = strdup(New_ProgramName); +} + +/*********************************************************************** + * SetProgramName - + * + * Gets the program name. + ***********************************************************************/ +char *GetProgramName ( void ) { + return ProgramName; +} /*********************************************************************** * InitLogging - diff -Naurp opencryptoki.orig/usr/sbin/pkcsslotd/log.h opencryptoki/usr/sbin/pkcsslotd/log.h --- opencryptoki.orig/usr/sbin/pkcsslotd/log.h 2008-10-11 17:30:02.000000000 +0000 +++ opencryptoki/usr/sbin/pkcsslotd/log.h 2008-10-18 17:00:44.000000000 +0000 @@ -402,6 +402,9 @@ BOOL PKCS_Log ( LogHandl BOOL NewLoggingFacility ( char *ID, pLoggingFacility pStuff ); BOOL CloseLoggingFacility ( LogHandle hLog ); BOOL GetCurrentTimeString ( char *Buffer ); +void SetLogFile ( const char *LogFile ); +void SetProgramName ( const char *New_ProgramName ); +char *GetProgramName ( void ); u_int32 SetDebugLevel ( u_int32 Val ); diff -Naurp opencryptoki.orig/usr/sbin/pkcsslotd/pkcsslotd.h opencryptoki/usr/sbin/pkcsslotd/pkcsslotd.h --- opencryptoki.orig/usr/sbin/pkcsslotd/pkcsslotd.h 2008-10-11 17:30:02.000000000 +0000 +++ opencryptoki/usr/sbin/pkcsslotd/pkcsslotd.h 2008-10-18 17:00:44.000000000 +0000 @@ -495,6 +495,7 @@ nl_catd catd; /* daemon.c */ BOOL IsDaemon ( void ); +BOOL SetDaemon ( BOOL Val ); BOOL GetStartDirectory ( char *Buffer, u_int32 BufSize ); BOOL SaveStartupDirectory ( char *Arg0 ); diff -Naurp opencryptoki.orig/usr/sbin/pkcsslotd/slotmgr.c opencryptoki/usr/sbin/pkcsslotd/slotmgr.c --- opencryptoki.orig/usr/sbin/pkcsslotd/slotmgr.c 2008-10-11 17:30:02.000000000 +0000 +++ opencryptoki/usr/sbin/pkcsslotd/slotmgr.c 2008-10-18 17:04:59.000000000 +0000 @@ -301,12 +301,16 @@ #include +/* for getopt via unitstd */ +extern char *optarg; + /* We make main() able to modify Daemon so that we can daemonize or not based on a command-line argument */ extern BOOL Daemon; extern BOOL IveDaemonized; +extern char *ProgramName; #if !(THREADED) extern void *GCMain ( void *Ptr); @@ -316,6 +320,23 @@ void DumpSharedMemory ( void ); /***************************************** + * usage() - + * Print command line options. + * + *****************************************/ +#define ARGS_STRING "hvfl:" +void usage ( void ) { + printf( + "usage:\t%s [-v] [-f] [-l LOG_FILE] [-h]\n\n" \ + "\t-v increase verbosity, can be specified multiple times\n" \ + "\t-f run in the foreground\n" \ + "\t-l FILE send logs to FILE as well as syslog\n" \ + "\t-h display this help message\n" \ + , GetProgramName()); +} + + +/***************************************** * main() - * You know what main does. * Comment block for ease of spotting @@ -324,6 +345,8 @@ void DumpSharedMemory ( void ); *****************************************/ int main ( int argc, char *argv[], char *envp[]) { + int option; + setlocale(LC_ALL, ""); catd = catopen(MF_SLOTD,0); @@ -331,10 +354,42 @@ int main ( int argc, char *argv[], char /* Read in command-line arguments */ /**********************************/ - /* FIXME: Argument for daemonizing or not */ - /* FIXME: Argument for debug level */ - /* FIXME: Arguments affecting the log files, whether to use syslog, etc. (Read conf file?) */ + /* Set default options */ + SetProgramName(basename(argv[0])); +#ifdef DEFAULT_DEBUG_LEVEL + SetDebugLevel(DEFAULT_DEBUG_LEVEL); +#else + SetDebugLevel(0); +#endif +#ifdef BECOME_DAEMON + SetDaemon(BECOME_DAEMON); +#else + SetDaemon(1); +#endif +#ifdef LOG_FILE + SetLogFile(LOG_FILE); +#else + SetLogFile(NULL); +#endif + /* Parse arguments */ + while (-1 != (option = getopt(argc, argv, ARGS_STRING))) { + switch (option) { + case 'h': + usage(); + exit(0); + break; + case 'v': + SetDebugLevel(GetDebugLevel() + 100); + break; + case 'f': + SetDaemon(0); + break; + case 'l': + SetLogFile(optarg); + break; + } + } /* Report our debug level */ if ( GetDebugLevel() > DEBUG_NONE) { debian/patches/03-dlopen-soname.patch0000644000000000000000000000164511732200427014623 0ustar Author: Daniel Baumann Description: Opening libopencryptoki correctly with soname major (Closes: #463593). --- a/usr/sbin/pkcscca_migrate/cca_migrate.c +++ b/usr/sbin/pkcscca_migrate/cca_migrate.c @@ -77,7 +77,7 @@ CK_RV rv; CK_RV (*pfoo)(); char *loc1_lib = "/usr/lib/pkcs11/PKCS11_API.so64"; - char *loc2_lib = "libopencryptoki.so"; + char *loc2_lib = "libopencryptoki.so.0"; CK_FUNCTION_LIST *funcs = NULL; --- a/usr/sbin/pkcsconf/pkcsconf.c +++ b/usr/sbin/pkcsconf/pkcsconf.c @@ -1227,7 +1227,7 @@ * error */ /* The host machine should have the right library in the * LD_LIBRARY_PATH */ - dllPtr = dlopen("libopencryptoki.so", RTLD_NOW); + dllPtr = dlopen("libopencryptoki.so.0", RTLD_NOW); if (!dllPtr) { printf(PKCSINIT_MSG(LOADERROR, "Error loading PKCS#11 library\n")); printf(PKCSINIT_MSG(LOADERROR, "dlopen error: %s\n"), dlerror()); debian/patches/0010-Remove-one-hardcoded-lib64-path.patch0000644000000000000000000000165311732200427020016 0ustar From: Guido Trotter Date: Sat, 10 Sep 2011 09:14:12 +0100 Subject: Remove one hardcoded lib64 path Signed-off-by: Guido Trotter --- usr/sbin/pkcs11_startup/pkcs11_startup.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/usr/sbin/pkcs11_startup/pkcs11_startup.in b/usr/sbin/pkcs11_startup/pkcs11_startup.in index 271930b..77904ba 100644 --- a/usr/sbin/pkcs11_startup/pkcs11_startup.in +++ b/usr/sbin/pkcs11_startup/pkcs11_startup.in @@ -427,7 +427,7 @@ fi # the CCA stdll *and* for a library needed by the CCA token - KlausK Jul'09 # The libraries required by CCA token are provided by the 'xcryptolinzGA' # RPM package, available from the IBM web site. -if [ -f @STDLL_PATH@/libpkcs11_cca.so ] && [ -f /usr/lib64/libcsulmkapi.so.1 ] +if [ -f @STDLL_PATH@/libpkcs11_cca.so ] && [ -f /usr/lib/libcsulmkapi.so.1 ] then @METHOD_PATH@/pkcs_slot 0 cca fi -- debian/patches/01-disable-testcases.patch0000644000000000000000000000201411732200427015446 0ustar Author: Daniel Baumann Description: Avoid processing of removed testcases. --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,3 @@ -if TESTS -TESTDIR = testcases -endif if LIBRARY MISCDIR = misc endif @@ -8,5 +5,5 @@ MISCDIR = misc endif -SUBDIRS = usr man $(MISCDIR) $(TESTDIR) +SUBDIRS = usr man $(MISCDIR) --- a/configure.in +++ b/configure.in @@ -322,20 +322,6 @@ usr/lib/pkcs11/methods/4758_status/Makefile \ misc/Makefile \ misc/pkcsslotd \ - testcases/Makefile \ - testcases/common/Makefile \ - testcases/driver/Makefile \ - testcases/init_tok/Makefile \ - testcases/mkobj/Makefile \ - testcases/oc-digest/Makefile \ - testcases/rsa_keygen/Makefile \ - testcases/rsa_test/Makefile \ - testcases/speed/Makefile \ - testcases/test_crypto/Makefile \ - testcases/threadmkobj/Makefile \ - testcases/tok_obj/Makefile \ - testcases/v2.11/Makefile \ - testcases/login/Makefile \ man/Makefile \ man/man1/Makefile \ man/man1/pkcsconf.1 \ debian/patches/02-disable-user-handling.patch0000644000000000000000000000310711732200427016215 0ustar Author: William Lima Description: Don't handle user adding in pkcs11_startup. diff -Naurp opencryptoki.orig/usr/sbin/pkcs11_startup/pkcs11_startup.in opencryptoki/usr/sbin/pkcs11_startup/pkcs11_startup.in --- opencryptoki.orig/usr/sbin/pkcs11_startup/pkcs11_startup.in 2005-05-05 21:57:25.000000000 +0000 +++ opencryptoki/usr/sbin/pkcs11_startup/pkcs11_startup.in 2007-12-27 12:16:45.000000000 +0000 @@ -310,28 +310,28 @@ rm -f @CONFIG_PATH@/@CONFIG_FILE@ >/dev/ # Create the pkcs11 group if it does not exist... -cat /etc/group|grep pkcs11 >/dev/null 2>&1 -rc=$? -if [ $rc = 1 ] -then - if [ -x @GROUPADD@ ] - then - @GROUPADD@ pkcs11 >/dev/null 2>&1 - - else - echo "Couldn't execute @GROUPADD@. Please add the group 'pkcs11' manually." - fi -fi +#cat /etc/group|grep pkcs11 >/dev/null 2>&1 +#rc=$? +#if [ $rc = 1 ] +#then +# if [ -x @GROUPADD@ ] +# then +# @GROUPADD@ pkcs11 >/dev/null 2>&1 +# +# else +# echo "Couldn't execute @GROUPADD@. Please add the group 'pkcs11' manually." +# fi +#fi -if [ -x @USERMOD@ -a -x @ID@ ] -then +#if [ -x @USERMOD@ -a -x @ID@ ] +#then # add the pkcs group # replace spaces by commas - @USERMOD@ -G $( @ID@ --groups --name root | /bin/sed -e 'y/ /,/'),pkcs11 root -else - echo "Couldn't execute @USERMOD@. Please add root to the group 'pkcs11' manually." -fi +# @USERMOD@ -G $( @ID@ --groups --name root | /bin/sed -e 'y/ /,/'),pkcs11 root +#else +# echo "Couldn't execute @USERMOD@. Please add root to the group 'pkcs11' manually." +#fi # For each card run the status command and if successful debian/patches/06-add-whatis-entry-to-manpages.patch0000644000000000000000000000124111732200427017452 0ustar Description: Add missing whatis entries to manpages Author: Johann Felix Soden --- a/man/man1/pkcs11_startup.1.in +++ b/man/man1/pkcs11_startup.1.in @@ -1,6 +1,6 @@ .TH PKCS11_STARTUP 1 "May 2007" "@PACKAGE_VERSION@" "openCryptoki" .SH NAME -pkcs11_startup +pkcs11_startup \- extract tokens from shared object libraries .SH DESCRIPTION Script that detects available tokens from installed shared object --- a/man/man1/pkcsconf.1.in +++ b/man/man1/pkcsconf.1.in @@ -1,6 +1,6 @@ .TH PKCSCONF 1 "May 2007" "@PACKAGE_VERSION@" "openCryptoki" .SH NAME -pkcsconf +pkcsconf \- configuration utility for the pkcsslotd daemon .SH SYNOPSIS \fBpkcsconf\fP debian/patches/08-reset-tpm-structures.patch0000644000000000000000000000424211732200427016224 0ustar Author: David Smith Description: Reset TPM datastructures on init, not just logout. Forwarded: http://sourceforge.net/tracker/download.php?group_id=128009&atid=710344&file_id=391513&aid=3073688 Bug: http://sourceforge.net/tracker/index.php?func=detail&aid=3073688&group_id=128009&atid=710344 Bug-Ubuntu: https://launchpad.net/bugs/645576 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=603104 --- usr/lib/pkcs11/tpm_stdll/tpm_specific.c | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) --- opencryptoki-2.3.1+dfsg.orig/usr/lib/pkcs11/tpm_stdll/tpm_specific.c +++ opencryptoki-2.3.1+dfsg/usr/lib/pkcs11/tpm_stdll/tpm_specific.c @@ -111,6 +111,22 @@ CK_BYTE current_user_pin_sha[SHA1_HASH_S CK_BYTE current_so_pin_sha[SHA1_HASH_SIZE]; +static void +clear_internal_structures() +{ + hSRK = NULL_HKEY; + hPrivateLeafKey = NULL_HKEY; + hPublicLeafKey = NULL_HKEY; + hPrivateRootKey = NULL_HKEY; + hPublicRootKey = NULL_HKEY; + + memset(master_key_private, 0, MK_SIZE); + memset(current_so_pin_sha, 0, SHA1_HASH_SIZE); + memset(current_user_pin_sha, 0, SHA1_HASH_SIZE); + + object_mgr_purge_private_token_objects(); +} + CK_RV token_specific_session(CK_SLOT_ID slotid) { @@ -263,7 +279,7 @@ token_wrap_sw_key(int size_n, unsigned c { TSS_RESULT result; TSS_HPOLICY hPolicy; - static TSS_BOOL get_srk_pub_key = TRUE; + TSS_BOOL get_srk_pub_key = TRUE; UINT32 key_size; key_size = util_get_keysize_flag(size_n * 8); @@ -1669,19 +1685,11 @@ token_specific_logout() { if (hPrivateLeafKey != NULL_HKEY) { Tspi_Key_UnloadKey(hPrivateLeafKey); - hPrivateLeafKey = NULL_HKEY; } else if (hPublicLeafKey != NULL_HKEY) { Tspi_Key_UnloadKey(hPublicLeafKey); - hPublicLeafKey = NULL_HKEY; } - memset(master_key_private, 0, MK_SIZE); - memset(current_so_pin_sha, 0, SHA1_HASH_SIZE); - memset(current_user_pin_sha, 0, SHA1_HASH_SIZE); - - /* pulled from new_host.c */ - object_mgr_purge_private_token_objects(); - + clear_internal_structures(); return CKR_OK; } @@ -2005,6 +2013,7 @@ token_specific_final() return CKR_FUNCTION_FAILED; } + clear_internal_structures(); return CKR_OK; } debian/patches/07-add-manpage-for-pkcs_slot.patch0000644000000000000000000000204311732200427017000 0ustar Description: Add a short man-page for pkcs_slot Author: Johann Felix Soden --- a/man/man1/Makefile.am +++ b/man/man1/Makefile.am @@ -1,2 +1,2 @@ -man1_MANS=pkcs11_startup.1 pkcsconf.1 +man1_MANS=pkcs11_startup.1 pkcsconf.1 pkcs_slot.1 EXTRA_DIST = $(man1_MANS) --- /dev/null +++ b/man/man1/pkcs_slot.1.in @@ -0,0 +1,22 @@ +.TH PKCS_SLOT 1 "February 2010" "@PACKAGE_VERSION@" "openCryptoki" +.SH NAME +pkcs_slot \- configuration program for opencryptoki +.SH SYNOPSIS +.B pkcs_slot +\fIdevicenumber depth\fR +.SH DESCRIPTION + +This utility is used internal by pkcs11_startup. +It writes the configuration file to disk as /etc/pkcs11/config_data. + +.SH "SEE ALSO" +.PD 0 +.TP +\fBpkcs11_startup\fP(1), +.TP +\fBopencryptoki\fP(7), +.TP +\fBpkcsslotd\fP(8), +.TP +\fBpk_config_data\fP(5). +.PD --- a/configure.in +++ b/configure.in @@ -326,6 +326,7 @@ man/man1/Makefile \ man/man1/pkcsconf.1 \ man/man1/pkcs11_startup.1 \ + man/man1/pkcs_slot.1 \ man/man5/Makefile \ man/man5/pk_config_data.5 \ man/man7/Makefile \ debian/patches/0009-Fix-wrong-LIB_PATH.patch0000644000000000000000000000202511732200427015321 0ustar From: Guido Trotter Date: Sat, 10 Sep 2011 09:12:37 +0100 Subject: Fix wrong LIB_PATH Assuming that lib64 will be used on 64-bit arch is wrong. Signed-off-by: Guido Trotter --- configure.in | 11 +---------- 1 files changed, 1 insertions(+), 10 deletions(-) diff --git a/configure.in b/configure.in index 4093747..be07a67 100644 --- a/configure.in +++ b/configure.in @@ -54,19 +54,10 @@ s390=0 # Arch specific stuff case $target in - *64*) - lib="lib64" - AM_CONDITIONAL(S390, false) ;; - *s390x*) - s390=1 - lib="lib64" - AM_CONDITIONAL(S390, true) ;; *s390*) s390=1 - lib="lib" AM_CONDITIONAL(S390, true) ;; *) - lib="lib" AM_CONDITIONAL(S390, false) ;; esac @@ -82,7 +73,7 @@ else AC_SUBST(DB_PATH, $prefix/var/lib/opencryptoki) fi -AC_SUBST(LIB_PATH, $prefix/$lib/opencryptoki) +AC_SUBST(LIB_PATH, $prefix/lib/opencryptoki) AC_SUBST(STDLL_PATH, $LIB_PATH/stdll) AC_SUBST(CONFIG_FILE, pk_config_data) AC_SUBST(METHOD_PATH, $prefix/sbin) -- debian/patches/05-build-fix-for-kbsd.patch0000644000000000000000000000527211732200427015454 0ustar Description: Fix FTBFS on GNU/kFreeBSD Author: Cyril Brulebois , Johann Felix Soden --- a/usr/include/pkcs11/apictl.h +++ b/usr/include/pkcs11/apictl.h @@ -296,7 +296,11 @@ #include +#ifdef linux #include +#else +#include +#endif #include #include #include --- a/usr/include/pkcs11/slotmgr.h +++ b/usr/include/pkcs11/slotmgr.h @@ -301,7 +301,11 @@ #include +#ifdef linux #include +#else +#include +#endif #include #include --- a/usr/include/pkcs11/stdll.h +++ b/usr/include/pkcs11/stdll.h @@ -302,7 +302,11 @@ #include +#ifdef linux #include +#else +#include +#endif #include #include --- a/usr/sbin/pkcsslotd/pkcsslotd.h +++ b/usr/sbin/pkcsslotd/pkcsslotd.h @@ -353,7 +353,11 @@ #include #include +#ifdef linux #include +#else +#include +#endif #include #include #include --- a/usr/sbin/pkcsslotd/err.c +++ b/usr/sbin/pkcsslotd/err.c @@ -331,14 +331,30 @@ CONSTINFO(ERANGE), CONSTINFO(ENOMSG), CONSTINFO(EIDRM), +#ifdef ECHRNG CONSTINFO(ECHRNG), +#endif /* ECHRNG */ +#ifdef EL2NSYNC CONSTINFO(EL2NSYNC), +#endif /* EL2NSYNC */ +#ifdef EL3HLT CONSTINFO(EL3HLT), +#endif /* EL3HLT */ +#ifdef EL3RST CONSTINFO(EL3RST), +#endif /* EL3RST */ +#ifdef ELNRNG CONSTINFO(ELNRNG), +#endif /* ELNRNG */ +#ifdef EUNATCH CONSTINFO(EUNATCH), +#endif /* EUNATCH */ +#ifdef ENOCSI CONSTINFO(ENOCSI), +#endif /* ENOCSI */ +#ifdef EL2HLT CONSTINFO(EL2HLT), +#endif /* EL2HLT */ CONSTINFO(EDEADLK), CONSTINFO(ESTALE), CONSTINFO(EWOULDBLOCK), @@ -369,7 +385,9 @@ CONSTINFO(ECONNREFUSED), CONSTINFO(EHOSTDOWN), CONSTINFO(EHOSTUNREACH), +#ifdef ESTART CONSTINFO(ERESTART), +#endif /* ESTART */ CONSTINFO(EUSERS), CONSTINFO(ELOOP), CONSTINFO(ENAMETOOLONG), @@ -380,12 +398,20 @@ CONSTINFO(ETOOMANYREFS), CONSTINFO(EILSEQ), CONSTINFO(ECANCELED), +#ifdef ENOSR CONSTINFO(ENOSR), +#endif /* ENOSR */ +#ifdef ETIME CONSTINFO(ETIME), +#endif /* ETIME */ CONSTINFO(EBADMSG), CONSTINFO(EPROTO), +#ifdef ENODATA CONSTINFO(ENODATA), +#endif /* ENODATA */ +#ifdef ENOSTR CONSTINFO(ENOSTR), +#endif /* ENOSTR */ CONSTINFO(ENOTSUP), CONSTINFO(EMULTIHOP), CONSTINFO(ENOLINK), @@ -424,7 +450,9 @@ CONSTINFO(SIGXCPU), CONSTINFO(SIGXFSZ), CONSTINFO(SIGWINCH), +#ifdef SIGPWR CONSTINFO(SIGPWR), +#endif /* SIGPWR */ CONSTINFO(SIGUSR1), CONSTINFO(SIGUSR2), CONSTINFO(SIGPROF), debian/libopencryptoki0.links0000644000000000000000000000014611732200427013524 0ustar usr/lib/libpkcs11_sw.so.0 usr/lib/libpkcs11_sw.so usr/lib/libpkcs11_tpm.so.0 usr/lib/libpkcs11_tpm.so debian/opencryptoki.postinst0000644000000000000000000000052011732200427013514 0ustar #!/bin/sh set -e case "${1}" in configure) addgroup --system pkcs11 adduser root pkcs11 chown root:pkcs11 /var/lib/opencryptoki chmod 0775 /var/lib/opencryptoki ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`${1}'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/control0000644000000000000000000000447311732200427010577 0ustar Source: opencryptoki Section: admin Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian QA Group Build-Depends: autoconf, automake, autotools-dev, debhelper (>= 7.0.50~), libtool, libtspi-dev Standards-Version: 3.9.2 Homepage: http://opencryptoki.sourceforge.net/ Package: opencryptoki Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, libopencryptoki0 (= ${binary:Version}), adduser Description: PKCS#11 implementation (daemon) openCryptoki is a PKCS#11 Cryptographic Token Interface Standard implementation. It includes drivers and libraries to enable IBM cryptographic hardware such as Trusted Computing Platform (TPM) cryptographic devices as well as a software token for testing. . This package contains the daemon. Package: opencryptoki-dbg Section: debug Priority: extra Architecture: any Depends: ${misc:Depends}, opencryptoki (= ${binary:Version}), libopencryptoki0 (= ${binary:Version}), libopencryptoki-dev (= ${binary:Version}) Description: PKCS#11 implementation (debug) openCryptoki is a PKCS#11 Cryptographic Token Interface Standard implementation. It includes drivers and libraries to enable IBM cryptographic hardware such as Trusted Computing Platform (TPM) cryptographic devices as well as a software token for testing. . This package contains the debugging symbols. Package: libopencryptoki0 Section: libs Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: PKCS#11 implementation (library) openCryptoki is a PKCS#11 Cryptographic Token Interface Standard implementation. It includes drivers and libraries to enable IBM cryptographic hardware such as Trusted Computing Platform (TPM) cryptographic devices as well as a software token for testing. . This package contains the library. Package: libopencryptoki-dev Section: libdevel Architecture: any Depends: ${misc:Depends}, libopencryptoki0 (= ${binary:Version}) Description: PKCS#11 implementation (development) openCryptoki is a PKCS#11 Cryptographic Token Interface Standard implementation. It includes drivers and libraries to enable IBM cryptographic hardware such as Trusted Computing Platform (TPM) cryptographic devices as well as a software token for testing. . This package contains the development files. debian/TODO0000644000000000000000000000005211732200427007651 0ustar daemon init scripts daemon group handling debian/opencryptoki.postrm0000644000000000000000000000047511732200427013166 0ustar #!/bin/sh set -e case "${1}" in remove) if [ -x /usr/sbin/deluser ] then deluser --group --only-if-empty pkcs11 || true fi ;; purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/rules0000755000000000000000000000225111732200427010244 0ustar #!/usr/bin/make -f SHELL := sh -e %: dh ${@} --with autotools_dev override_dh_auto_clean: dh_auto_clean rm -f usr/lib/pkcs11/api/pkcs11 override_dh_auto_configure: ./bootstrap.sh dh_auto_configure -- --enable-tpmtok override_dh_auto_install: dh_auto_install # create links to .so-files in usr/lib ( cd debian/tmp/usr/lib && \ for FILE in ./opencryptoki/*.so.* ./opencryptoki/stdll/*.so.*; \ do \ ln -s $$FILE ; \ done \ ) # Remove broken symlinks in /usr/lib/pkcs11/ cd debian/tmp/usr/lib/pkcs11 && rm -f \ libopencryptoki.so PKCS11_API.so # Removing useless files rm -rf debian/tmp/etc/ld.so.conf.d rm -rf debian/tmp/etc/init.d rm -f debian/tmp/usr/include/Makefile* rm -f debian/tmp/usr/include/*/Makefile* rm -f debian/tmp/usr/lib/opencryptoki/*.la \ debian/tmp/usr/lib/opencryptoki/stdll/*.la mkdir -p debian/opencryptoki/etc ln -s ../var/lib/opencryptoki debian/opencryptoki/etc/pkcs11 override_dh_install: dh_install --fail-missing --sourcedir=debian/tmp override_dh_strip: dh_strip --dbg-package=opencryptoki-dbg get-orig-source: cd $(dir $(firstword $(MAKEFILE_LIST))).. && \ uscan --force-download --repack --rename --destdir $(CURDIR) debian/compat0000644000000000000000000000000211732200427010362 0ustar 7 debian/opencryptoki.links0000644000000000000000000000022311732200427012751 0ustar usr/lib/opencryptoki/libopencryptoki.so.0 usr/lib/pkcs11/libopencryptoki.so usr/lib/opencryptoki/libopencryptoki.so.0 usr/lib/pkcs11/PKCS11_API.so debian/libopencryptoki0.lintian-overrides0000644000000000000000000000007011732200427016036 0ustar libopencryptoki0: possible-gpl-code-linked-with-openssl