Main Page | Data Structures | Directories | File List | Data Fields | Globals

pkcs11.h File Reference

#include <openssl/x509.h>
#include "pkcs11t.h"
#include "pkcs11f.h"

Go to the source code of this file.

Data Structures

struct  CK_FUNCTION_LIST
struct  key_object_t
struct  slot_t
struct  pkcs11_handle_t

Defines

#define CK_PTR   *
#define CK_DEFINE_FUNCTION(returnType, name)   returnType name
#define CK_DECLARE_FUNCTION(returnType, name)   returnType name
#define CK_DECLARE_FUNCTION_POINTER(returnType, name)   returnType (* name)
#define CK_CALLBACK_FUNCTION(returnType, name)   returnType (* name)
#define NULL_PTR   0
#define __PASTE(x, y)   x##y
#define CK_NEED_ARG_LIST   1
#define CK_PKCS11_FUNCTION_INFO(name)   extern CK_DECLARE_FUNCTION(CK_RV, name)
#define CK_NEED_ARG_LIST   1
#define CK_PKCS11_FUNCTION_INFO(name)   typedef CK_DECLARE_FUNCTION_POINTER(CK_RV, __PASTE(CK_,name))
#define CK_PKCS11_FUNCTION_INFO(name)   __PASTE(CK_,name) name;

Functions

int load_pkcs11_module (char *module, pkcs11_handle_t *h)
int init_pkcs11_module (pkcs11_handle_t *h)
void release_pkcs11_module (pkcs11_handle_t *h)
int open_pkcs11_session (pkcs11_handle_t *h, unsigned int slot)
int pkcs11_login (pkcs11_handle_t *h, char *password)
int close_pkcs11_session (pkcs11_handle_t *h)
int get_certificates (pkcs11_handle_t *h)
int get_private_keys (pkcs11_handle_t *h)
int sign_value (pkcs11_handle_t *h, CK_BYTE *data, CK_ULONG length, CK_BYTE **signature, CK_ULONG *signature_length)
int get_random_value (unsigned char *data, int length)


Define Documentation

#define __PASTE x,
 )     x##y
 

Definition at line 57 of file pkcs11.h.

#define CK_CALLBACK_FUNCTION returnType,
name   )     returnType (* name)
 

Definition at line 32 of file pkcs11.h.

#define CK_DECLARE_FUNCTION returnType,
name   )     returnType name
 

Definition at line 28 of file pkcs11.h.

#define CK_DECLARE_FUNCTION_POINTER returnType,
name   )     returnType (* name)
 

Definition at line 30 of file pkcs11.h.

#define CK_DEFINE_FUNCTION returnType,
name   )     returnType name
 

Definition at line 26 of file pkcs11.h.

#define CK_NEED_ARG_LIST   1
 

Definition at line 84 of file pkcs11.h.

#define CK_NEED_ARG_LIST   1
 

Definition at line 84 of file pkcs11.h.

#define CK_PKCS11_FUNCTION_INFO name   )     __PASTE(CK_,name) name;
 

Definition at line 105 of file pkcs11.h.

#define CK_PKCS11_FUNCTION_INFO name   )     typedef CK_DECLARE_FUNCTION_POINTER(CK_RV, __PASTE(CK_,name))
 

Definition at line 105 of file pkcs11.h.

#define CK_PKCS11_FUNCTION_INFO name   )     extern CK_DECLARE_FUNCTION(CK_RV, name)
 

Definition at line 105 of file pkcs11.h.

#define CK_PTR   *
 

Definition at line 25 of file pkcs11.h.

#define NULL_PTR   0
 

Definition at line 35 of file pkcs11.h.


Function Documentation

int close_pkcs11_session pkcs11_handle_t h  ) 
 

int get_certificates pkcs11_handle_t h  ) 
 

int get_private_keys pkcs11_handle_t h  ) 
 

int get_random_value unsigned char *  data,
int  length
 

int init_pkcs11_module pkcs11_handle_t h  ) 
 

int load_pkcs11_module char *  module,
pkcs11_handle_t h
 

int open_pkcs11_session pkcs11_handle_t h,
unsigned int  slot
 

int pkcs11_login pkcs11_handle_t h,
char *  password
 

void release_pkcs11_module pkcs11_handle_t h  ) 
 

int sign_value pkcs11_handle_t h,
CK_BYTE *  data,
CK_ULONG  length,
CK_BYTE **  signature,
CK_ULONG *  signature_length
 


Generated on Mon Sep 12 11:17:06 2005 for pam_pkcs11 by  doxygen 1.4.4