1
0
mirror of https://github.com/opencryptoki/opencryptoki.git synced 2026-10-24 05:39:17 +03:00
Commit Graph

16 Commits

Author SHA1 Message Date
Dan Horák
5532243e95 don't set TERM signal explicitely when calling killproc
The TERM signal is sent by default when the killproc function is called.
Also the pid file created by the pkcsslotd executable is removed by the
initscript (resp. by the killproc function) only when no signal is set.
Other solution how to remove the pid file is to remove it directly by the
executable.

Signed-off-by: Dan Horák <dan@danny.cz>
2010-05-04 13:33:07 -03:00
Dan Horák
f49465135c sync pidfile path between pkcsslotd initscript and executable
pkcsslotd executable creates a pidfile as /var/lib/opencryptoki/.slotpid
(CONFIG_PATH + "/.slotpid"), but the corresponding initscipt expects the
pidfile at /var/run/pkcsslotd.pid and this one is used to check whether
the service is running etc. The attached patch switches pkcsslotd to using
the /var/run/pkcsslotd.pid one and also simplifies the logic in the initscript
because the daemon function takes care of the checked cases.

Signed-off-by: Dan Horák <dan@danny.cz>
2010-05-04 13:32:32 -03:00
Dan Horák
14582a5292 add force-reload action to pkcsslotd initscript
force-reload action is added to the pkcsslotd initscript and also
it's documented in usage message together with reload action

Signed-off-by: Dan Horák <dan@danny.cz>
2010-05-04 13:31:49 -03:00
Klaus Heinrich Kiwi
789d86ee16 Merge branch 'master' into opencryptoki-next
* master:
  Fixed the pkcsslotd init script to make it return codes according to LSB specification.
  Version update.
  Fix wrong log message for "API already initialized" condition
  Check for vendor-defined object classes
  Fix public exponent attribute endianness bug
  AES support included into the CCA token.
  Makes pkcscca_migrate tool link dynamically to libcsulcca.so by using dlopen() instead.

Conflicts:
	configure.in - took version number from master ("2.3.1")

Signed-off-by: Klaus Heinrich Kiwi <klausk@linux.vnet.ibm.com>
2010-05-04 10:51:38 -03:00
Rajiv Andrade
54a2a77172 Fixed the pkcsslotd init script to make it return codes according to LSB specification.
Signed-off-by: Dan Horák <dhorak@redhat.com>
2010-04-15 16:56:07 -03:00
Klaus Heinrich Kiwi
e1956cf493 configure.in: complete refactor.
Unfortunately I couldn't split this patch in a sane way, because
essentially we're rewriting configure.in here.

In summary, the main changes are:

 * Use AC_ARG_ENABLE() only to enable/disable building certain parts
   of the code
 * Use AC_ARG_WITH() only to specify libraries that may be needed by
   certain portions of the code
 * All AC_ARG_ENABLE() macros comes with architecture-independent
   defaults. This means that we won't be trying to guess what
   features (tokens) we should or should not be building.
 * All AC_ARG_WITH() macros have 'check' as the default (check for
   that library in the default search path)
 * IMPORTANT: Separate pkcscca_migrate from cca token build, as only
   the former requires the CCA libraries to link.
 * No more dependencies of what stdll can be built based on arch.
   Theoretically all stdll can be built on all archs, given that
   it has the relevant libraries also (we know this is not always
   true, so sometimes the user needs to explicitly disable a token
   with --without-FEATURE to build on certain archs)
 * The (special case of) ica stdll: builds ica_s390_stdll on s390
   archs while using ica_stdll on any other arch.

Signed-off-by: Klaus Heinrich Kiwi <klausk@linux.vnet.ibm.com>
2010-01-12 16:09:31 -02:00
Klaus Heinrich Kiwi
f8d47a6870 Process pkcsslotd.in at build time instead of configure time
This patch moves the processing of misc/pkcsslotd.in to use
a sed script at build time instead of relying on configure
to process it at configure time. This allows us to be more
flexible when building to non-standard directories or other
odd scenarios. Also fixed to use standard directory variables.

Signed-off-by: Klaus Heinrich Kiwi <klausk@linux.vnet.ibm.com>
2010-01-12 08:03:28 -02:00
Klaus Heinrich Kiwi
b61e8ba70c Move loader configuration from misc dir to usr/lib dir
This is certainly more of a cosmetic change than anything
else, moving the install script that includes our library
directories in ld.so.conf from misc/Makefile.am to
usr/lib/Makefile.am, but it also brings some fixes such
as use -hook target instead of -local (make sure that
this is run *after* everything else on this dir) and
use standard pathnames variables.

Signed-off-by: Klaus Heinrich Kiwi <klausk@linux.vnet.ibm.com>
2010-01-12 07:50:00 -02:00
danielhjones
d089058f00 These modifications represent a significant change in the way opencryptoki
gets built and RPMs are created. Whereas before all possible tokens
were created by default, now only a default token is created implicitly. On
s390 systems, the default is the ica_390 token. On other platforms, the
default is the software token. Separate token RPMs may be created. A sample
spec file is provided for the a tpm token package. A package may also be
created containing just the libopencryptoki shared object. This will enable
a 32 bit libopencryptoki package to be created for 64 bit platforms in order
to maintain compatibility with previous releases.
2006-08-14 18:30:00 +00:00
danielhjones
181f75f958 Added pkcsslotd init script 2006-07-25 13:51:23 +00:00
danielhjones
70ca2d4143 Mainly a cleanup of configure.in to remove target specific conditionals and
use $libdir instead. Replaced the openCryptoki.spec file with opencryptoki.spec
and cleaned it up.
2006-07-13 15:41:57 +00:00
danielhjones
25feaa2bc1 Changes made to enable 64bit daemon/tools on 64bit platforms. Some
structures padded due to alignment variations between x86_64 64bit
and 32 bit (i386) binaries.
Full path removed from pk_config_data file. Library paths added to
ld.so.conf.d files for library location.
2006-04-17 18:23:06 +00:00
mhalcrow
dc61998b7b Flesh out the migration script 2006-01-12 15:46:45 +00:00
mhalcrow
93b2ae299d Beginnings of a script to migrate a machine from version 2.1 to 2.2. 2006-01-12 15:26:20 +00:00
mhalcrow
6cdba6b96e Test executable demonstrating how openCryptoki might use the generate_pkcs11_mech_list call. 2005-08-05 15:48:59 +00:00
mhalcrow
c41a7fc624 Example header declarations and functions for converting library-specific mechanism descriptors into an openCryptoki mechanism list. 2005-08-05 15:31:03 +00:00