]> granicus.if.org Git - p11-kit/commit
proxy: Reuse the existing slot ID mapping after fork
authorDaiki Ueno <dueno@redhat.com>
Tue, 16 Jan 2018 15:17:22 +0000 (16:17 +0100)
committerDaiki Ueno <ueno@gnu.org>
Mon, 29 Jan 2018 16:09:27 +0000 (17:09 +0100)
commit3eed501fab5e2a2b19115f4840709c34e9b8ac55
tree9604d18a6e657d1af231f71aa4a0ee632b33dfd2
parent031d3c74c0ff5da8e9650da0615bbb8107ab1fde
proxy: Reuse the existing slot ID mapping after fork

While the proxy module reassigns slot IDs in C_Initialize(), some
applications assume that valid slot IDs should never change across
multiple calls to C_Initialize().  This patch mitigates this by
preserving the slot IDs, if they are known to the proxy module.
p11-kit/Makefile.am
p11-kit/fixtures/package-modules/six.module [new file with mode: 0644]
p11-kit/mock-module-ep4.c [new file with mode: 0644]
p11-kit/proxy.c
p11-kit/test-proxy.c