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

4 Commits

Author SHA1 Message Date
Akash Kulhalli
a402a405fa aix: Add missing code that is AIX-specific
AIX does not have any of the BSD's warnx and friends functions, and neither
does it have getopt_long. Both of these are included, sourced from a pool of
permissive licenses, with their license notices intact.

In an effort to preserve nativity, this code is not used on other platforms,
instead preferring to use the native behaviours available on respective
platforms.

Additionally, this commit also includes some changes that _removes_
platform-specificity for the Linux platform, setting the _GNU_SOURCE macro
once in autoconf, instead of duplicating that in every source file.

Signed-off-by: Akash Kulhalli <akash.kulhalli@ibm.com>
2024-04-24 09:48:07 +02:00
Ingo Franzki
8fc969b238 configure: Support cross compilation
Support cross compilation by making sure that the build tools are
built with a local compiler.

Note: This requires the AX_PROG_CC_FOR_BUILD` autoconf macro from
the autoconf archive.

Tested-by: Marc Hartmayer <marc@linux.ibm.com>
Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
2023-01-16 10:13:15 +01:00
Juergen Christ
6fd188cefb DOC: Add example policy and strength configurations
These files will also be installed automatically via autotools into the
correct doc folder (typically /usr/share/doc/opencryptoki).

Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>
2021-11-08 16:29:24 +01:00
Juergen Christ
c96f608763 API: Add Mechanism table
Add a single source mechanism table to be used by policy and other code.  This
should remove the various tables and switches over mechanisms in the code and
provide a common way to translate between numeric and string representation.

Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>
2021-11-08 16:29:24 +01:00