RSA BSAFE Crypto-C

Cryptographic Components for C

Search

B_PKCS11_SESSION Struct Reference

This structure holds the information to set up a chooser for use with a PKCS #11 device when the caller wants to use a pre-established session.

Samples:

p11dsakeygen.c, p11dsasign.c, p11rsaencrypt.c, p11rsakeygen.c, and p11rsasign.c.

#include <bsafe.h>

typedef struct {
  unsigned long int sessionHandle; /* In PKCS 11, a session handle is a
                           CK_SESSION_HANDLE, which is an unsigned long int */
  POINTER cryptokiFunctions;                /* A Cryptoki C_FunctionListPtr */
  char *libraryName;     /* The name of the shared library (DLL, .so, etc.) */
  ITEM tokenLabel;            /* A user-defined label to differentiate tokens */
  ITEM passPhrase;             /* Possibly needed to log in into the device */
  A_SURRENDER_CTX *surrenderContext;       /* Install when creating session */
} B_PKCS11_SESSION;

Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 068-001001-6210-001-000 - 6.2.1