summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-11-14uri: Accept 'type' in additon to 'object-type' in PKCS#11 URIsStef Walter2-2/+30
This was a later change to the PKCS#11 specification drafts
2014-11-12compat: Add definition for setenv for Win32Michael Cronenworth2-0/+5
Signed-off-by: Michael Cronenworth <mike@cchtml.com>
2014-10-09Release version 0.22.10.22.1Stef Walter2-1/+7
2014-10-09trust: Certificate CKA_ID is SubjectKeyIdentifier if possibleStef Walter7-46/+91
The PKCS#11 spec states that the CKA_ID should match the SubjectKeyIdentifier if such an extension is present. We delay the filling of CKA_ID until the builder phase of populating attributes which allows us to have more control over how this works. Note that we don't make CKA_ID reflect SubjectKeyIdentifier *attached* extensions. The CKA_ID isn't supposed to change after object creation. Making it dependent on attached extensions would be making promises we cannot keep, since attached extensions can be added/removed at any time. This also means the CKA_ID of attached extensions and certificates won't necessarily match up, but that was never promised, and not how attached extensions should be matched to their certificate anyway. Based on a patch and research done by David Woodhouse. https://bugs.freedesktop.org/show_bug.cgi?id=84761
2014-10-09trust: Allow 'BEGIN PUBLIC KEY' PEM blocks in .p11-kit filesStef Walter4-4/+82
These PEM blocks contribute a CKA_PUBLIC_KEY_INFO to the object being read/written. https://bugs.freedesktop.org/show_bug.cgi?id=83799
2014-10-07trust: add missing libtasn1 cflagsRoman Bogorodskiy1-0/+39
Add a number of missing LIBTASN1_CFLAGS where it's required
2014-10-06Bump libtool versioning for added APIsStef Walter1-2/+2
2014-10-06Unbreak build on OpenBSDAntoine Jacoutot1-0/+5
Add missing header for strdup(3). When EPROTO is not available, fallback to EIO. https://bugs.freedesktop.org/show_bug.cgi?id=84665
2014-10-05makefile: Rename DATADIR to not conflict with Win32 defineMichael Cronenworth3-3/+3
Signed-off-by: Michael Cronenworth <mike@cchtml.com>
2014-10-04Release version 0.22.00.22.0Stef Walter2-1/+7
2014-10-03p11-kit: Use pthread_atfork() in a safe mannerStef Walter9-117/+63
Instead of trying to perform actions in pthread_atfork() which are not async-signal-safe, just increment a counter so we can later tell if the process has forked. Note this does not make it safe to mix threads and forking without immediately execing. This is a far broader problem that p11-kit, however we now do the right thing when fork+exec is used from a thread. https://bugs.freedesktop.org/show_bug.cgi?id=84567
2014-10-02remote: Run separate executable binary for 'p11-kit remote'Stef Walter5-157/+164
This allows security frameworks like SELinux or AppArmor to target it specifically.
2014-10-02p11-kit: P11_KIT_PRIVATEDIR env var overrides private binary dirStef Walter2-1/+7
External binaries are searched for in $(libdir)/p11-kit. The P11_KIT_PRIVATEDIR can be used to override that, for example during 'make check'
2014-10-02common: Use secure_getenv() implementation when setuidStef Walter8-4/+113
In anything security sensitive, use secure_getenv() implementation for retrieving environment variables.
2014-10-02common: In tests preserve parent environment for childrenStef Walter1-1/+1
2014-10-01p11-kit: Remove the 'isolated' option for nowStef Walter3-24/+5
This option was not completed in time, and as implemented suffers from limitations that the module is not really completely isolated as it still runs under the same user id as the calling process.
2014-09-18common: Move unistd include to define getopt and friendsMichael Cronenworth1-1/+1
Needed to fix MinGW builds. Signed-off-by: Michael Cronenworth <mike@cchtml.com>
2014-09-17Release version 2.21.30.21.3Stef Walter2-1/+9
2014-09-10trust: Use term 'attached extensions' instead of 'stapled'Stef Walter8-72/+72
The term 'stapled extensions' is confusing because it overloads terminology used with OSCP stapling. Suggested by Daniel Kahn Gillmor.
2014-09-10common: New public pkcs11x.h header containing extensionsStef Walter12-457/+520
Move our internal stuff to pkcs11i.h, and install the pkcs11x.h header containing extensions. https://bugs.freedesktop.org/show_bug.cgi?id=83495
2014-09-10common: Change the CKA_X_PUBLIC_KEY_INFO constant to CKA_PUBLIC_KEY_INFOStef Walter11-48/+52
CKA_PUBLIC_KEY_INFO is defined in the PKCS#11 2.40 draft, so use that rather than defining our own. * Fixed up by Nikos Mavrogiannopoulos <nmav@redhat.com> https://bugs.freedesktop.org/show_bug.cgi?id=83495
2014-09-10common: Add support for multiple field names (ie: nicks) per constantStef Walter3-21/+22
This allows us to have old/new names for a given constant. https://bugs.freedesktop.org/show_bug.cgi?id=83495
2014-09-09p11-kit: Fix tests when building with MinGWMichael Cronenworth3-0/+30
Signed-off-by: Michael Cronenworth <mike@cchtml.com>
2014-09-09trust: Fix token test when building with MinGWMichael Cronenworth1-0/+4
Signed-off-by: Michael Cronenworth <mike@cchtml.com>
2014-09-09configure: Check for pthread_create() in pthread libraryRoman Bogorodskiy1-3/+3
Check for pthread_create() in pthread library instaed of pthread_mutexattr_init(). This fixes a linking error on FreeBSD. https://bugs.freedesktop.org/show_bug.cgi?id=75674
2014-09-09p11-kit: Compilation fixes for previous commitStef Walter1-4/+1
Pushed the wrong version
2014-09-09p11-kit: Make proxy module respect critical = noStef Walter1-37/+47
The p11-kit-proxy.so module would not respect the critical = no setting in module configuration, and fail if any module failed to initialize. https://bugs.freedesktop.org/show_bug.cgi?id=83651
2014-09-09Fix build without debugRoman Bogorodskiy1-0/+2
When building without debug build fails with: CCLD p11-kit/p11-kit ./.libs/libp11-kit.so: undefined reference to `P11_RPC_CHECK_CALLS' cc: error: linker command failed with exit code 1 (use -v to see invocation) gmake[2]: *** [p11-kit/p11-kit] Error 1 This happens because P11_RPC_CHECK_CALLS is not defined when debugging is enabled, so provide a noop macro for that case.
2014-09-05trust: Show public-key-info in 'trust list --details'Stef Walter1-0/+14
Since the public-key-info is an important part of the way we represent trust, show it in 'trust list' if --details is present.
2014-09-05Release version 0.21.20.21.2Stef Walter2-1/+11
2014-09-05trust: Produce a proper message for an invalid stapled extensionStef Walter1-1/+10
Previously we would output a line like this: p11-kit: 'node != NULL' not true at lookup_extension
2014-08-15Move to non-recursive Makefile for building bins and libsStef Walter133-589/+632
Still use recursive for documentation and translation.
2014-08-15common: Fix regression introduced by last commitStef Walter1-1/+1
The last commit caused dirfd() to become undefined. https://bugs.freedesktop.org/show_bug.cgi?id=82617
2014-08-14Fix build against older pthreads implementationsBaruch Siach1-0/+6
Older pthreads implementations like glibc NPTL prior to version 2.12, and uClibc linuxthreads (both), need _XOPEN_SOURCE to expose pthread_mutexattr_settype() and THREAD_MUTEX_DEFAULT. The value 600 (SuSv3, POSIX.1-2001) is equivalent to _POSIX_C_SOURCE 200112L. Fixes the following build error: CC compat.lo compat.c: In function 'p11_mutex_init': compat.c:164:2: warning: implicit declaration of function 'pthread_mutexattr_settype' [-Wimplicit-function-declaration] compat.c:164:2: warning: nested extern declaration of 'pthread_mutexattr_settype' [-Wnested-externs] compat.c:164:36: error: 'PTHREAD_MUTEX_DEFAULT' undeclared (first use in this function) https://bugs.freedesktop.org/show_bug.cgi?id=82617
2014-08-14Fix 'make upload-release' targetStef Walter1-2/+2
2014-08-11doc: Fix missing tag in p11-kit-sharing.xmlStef Walter1-0/+1
2014-08-11p11-kit: Fix various noise/issues highlighted by clangStef Walter4-13/+13
2014-08-08Ignore clang scanner litterStef Walter1-0/+1
2014-08-08trust: Don't use invalid public keys for looking up stapled extensionsStef Walter1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=82328
2014-08-08trust: Print label of certificate when complaining about basic constraintsStef Walter1-1/+5
https://bugs.freedesktop.org/show_bug.cgi?id=82328
2014-08-08trust: Double check that index bucket is valid before accessStef Walter1-2/+2
2014-08-08p11-kit: Remove use after free in debug output code pathStef Walter1-1/+1
2014-08-08Quiten down scanner warnings about unused variablesStef Walter2-8/+2
2014-08-08common: Quiet down clang scanner with assertionsStef Walter1-1/+1
Quieten down the clang scanner by telling it to expect that our test assertions fail
2014-08-08Fix mostly erroneous scanner warnings in testsStef Walter11-2/+22
2014-08-08trust: Fix leak in token loading error pathStef Walter1-0/+1
2014-08-08trust: Fix unlikely use of uninitialized memory in token loadingStef Walter1-3/+3
2014-08-08trust: Fix leak in trust list commandStef Walter1-0/+1
2014-08-08trust: Fix use after free and double free in extract commandStef Walter1-7/+4
2014-08-08trust: Remove dead while condition in anchor commondStef Walter1-1/+1