Remote Proxy Module

While the proxy module exposes the configured modules, the remoting functionality of p11-kit often needs to be set up dynamically (while the module for an actual token is selected by the remote end).

To allow use of the remoting capability for PKCS#11 consumers that don't link to p11-kit, a separate proxy module is provided that can be used in place of an ordinary PKCS#11 module. It proxies the PKCS#11 calls to a remote specified by the P11_REMOTE environment variable, using the same syntax as a remote module in the configuration file.