summaryrefslogtreecommitdiff
path: root/p11-kit/rpc-client.c
Commit message (Collapse)AuthorAgeFilesLines
* rpc: Convert mechanism parameters for portabilityDaiki Ueno2017-05-241-148/+5
| | | | This is similar to commit ba49b85e, but for mechanism parameters.
* rpc: Convert attribute value for portabilityDaiki Ueno2017-05-221-40/+23
| | | | | | | | | | | 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>
* rpc: Send x-init-reserved to remote moduleDaiki Ueno2016-10-051-1/+15
| | | | | | | Signed-off-by: Stef Walter <stefw@redhat.com> * Fixed up indentation https://bugs.freedesktop.org/show_bug.cgi?id=80519
* p11-kit: Use pthread_atfork() in a safe mannerStef Walter2014-10-031-11/+9
| | | | | | | | | | | | | 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 various noise/issues highlighted by clangStef Walter2014-08-111-2/+2
|
* rpc: Implement PKCS#11 messages/client/server codeStef Walter2014-07-081-0/+2092
* This enables passing around bytes which represent PKCS#11 RPC calls. * Caller is responsible for connecting/disconnecting and so on. * Client side caller gets a mixin from p11_rpc_client_init() to call into, which generates callbacks with byte arrays to be transported. * Server side calls p11_rpc_server_handle() with a CK_FUNCTION_LIST_PTR on which relevant methods get called. * Doesn't yet implement the actual daemon or clients etc... https://bugs.freedesktop.org/show_bug.cgi?id=54105