Skip to content
Snippets Groups Projects
gck-rpc-layer.h 669 B
Newer Older
  • Learn to ignore specific revisions
  • Corentin Chary's avatar
    Corentin Chary committed
    #ifndef GCKRPC_LAYER_H_
    #define GCKRPC_LAYER_H_
    
    #include "pkcs11/pkcs11.h"
    
    /* ------------------------------------------------------------------
     * DISPATCHER
     */
    
    /* Call to initialize the module and start listening, returns socket or -1 */
    int gck_rpc_layer_initialize(const char *prefix, CK_FUNCTION_LIST_PTR funcs);
    
    /* Should be called to cleanup dispatcher */
    void gck_rpc_layer_uninitialize(void);
    
    /* Accept a new connection. Should be called when above fd has read */
    void gck_rpc_layer_accept(void);
    
    
    /* Run a single connection off of STDIN - call from inetd or stunnel */
    
    void gck_rpc_layer_inetd(CK_FUNCTION_LIST_PTR funcs);
    
    Corentin Chary's avatar
    Corentin Chary committed
    #endif /* GCKRPC_LAYER_H_ */