summaryrefslogtreecommitdiff
path: root/p11-kit/test-rpc.c
Commit message (Collapse)AuthorAgeFilesLines
* rpc: Fix crash when retrieving attribute lengthDaiki Ueno2017-09-271-0/+28
| | | | | | It is possible that NULL is given to the serializers, when C_GetAttributeValue() just wants to know the size of an attribute. Previously, this resulted in giving NULL to memcpy().
* test: Fix failure on 32-bit big endian platformDaiki Ueno2017-07-141-14/+15
| | | | | | | | | | The value given to p11_rpc_buffer_add_ulong_value() must be a pointer of CK_ULONG. Similarly, the value returned from p11_rpc_buffer_get_ulong_value() must be converted to CK_ULONG before comparison. Reported by Andreas Metzler in: https://lists.freedesktop.org/archives/p11-glue/2017-July/000665.html
* test: Check the size of unsigned longDaiki Ueno2017-05-261-9/+9
|
* rpc: Convert mechanism parameters for portabilityDaiki Ueno2017-05-241-0/+66
| | | | This is similar to commit ba49b85e, but for mechanism parameters.
* rpc: Convert attribute value for portabilityDaiki Ueno2017-05-221-1/+222
| | | | | | | | | | | When using the RPC across multiple architectures, where data models are different, say LP64 vs ILP32, there can be unwanted truncation of attribute values. This patch converts the values into portable format for the known attributes. Co-authored-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
* p11-kit: Use pthread_atfork() in a safe mannerStef Walter2014-10-031-17/+8
| | | | | | | | | | | | | 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
* p11-kit: Fix tests when building with MinGWMichael Cronenworth2014-09-091-0/+9
| | | | Signed-off-by: Michael Cronenworth <mike@cchtml.com>
* Move to non-recursive Makefile for building bins and libsStef Walter2014-08-151-0/+1061
Still use recursive for documentation and translation.