Back to index

lightning-sunbird  0.9+nobinonly
Defines | Variables
pk11table.c File Reference
#include <pkcs11.h>
#include "pk11util.h"

Go to the source code of this file.

Defines

#define mkEntry(x, t)   { #x, x, Const##t, ConstNone }
#define mkEntry2(x, t, t2)   { #x, x, Const##t, Const##t2 }

Variables

const char * _valueString []
const char ** valueString = &_valueString[0]
const int valueCount = sizeof(_valueString)/sizeof(_valueString[0])
const char * _constTypeString []
const char ** constTypeString = &_constTypeString[0]
const int constTypeCount = sizeof(_constTypeString)/sizeof(_constTypeString[0])
const Constant _consts []
const Constantconsts = &_consts[0]
const int constCount = sizeof(_consts)/sizeof(_consts[0])
const Commands _commands []
const Commandscommands = &_commands[0]
const int commandCount = sizeof(_commands) / sizeof(_commands[0])
const Topics _topics []
const Topicstopics = &_topics[0]
const int topicCount = sizeof(_topics)/sizeof(_topics[0])

Define Documentation

#define mkEntry (   x,
  t 
)    { #x, x, Const##t, ConstNone }

Definition at line 86 of file pk11table.c.

#define mkEntry2 (   x,
  t,
  t2 
)    { #x, x, Const##t, Const##t2 }

Definition at line 87 of file pk11table.c.


Variable Documentation

Definition at line 597 of file pk11table.c.

Definition at line 89 of file pk11table.c.

Initial value:
 {
    "None",
    "Bool",
    "InfoFlags",
    "SlotFlags",
    "TokenFlags",
    "SessionFlags",
    "MechanismFlags",
    "InitializeFlags",
    "Users",
    "SessionState",
    "Object",
    "Hardware",
    "KeyType",
    "CertificateType",
    "Attribute",
    "Mechanism",
    "Result",
    "Trust",
    "AvailableSizes",
    "CurrentSize"
}

Definition at line 60 of file pk11table.c.

Initial value:
 {
   { "variables", 
"Variables are random strings of characters. These should begin with alpha\n"
" characters, and should not contain any spaces, nor should they match any\n"
" built-in constants. There is some checking in the code for these things,\n"
" but it's not 100% and using invalid variable names can cause problems.\n"
" Variables are created by any 'OUT' parameter. If the variable does not\n"
" exist, it will be created. For in parameters variables must already exist.\n"
   },
   { "constants",
"pk11util recognizes *lots* of constants. All CKA_, CKF_, CKO_, CKU_, CKS_,\n"
" CKC_, CKK_, CKH_, CKM_, CKT_ values from the PKCS #11 spec are recognized.\n"
" Constants can be specified with their fully qualified CK?_ value, or the\n"
" prefix can be dropped. Constants are matched case insensitve.\n" 
   },
   { "arrays",
"Arrays are special variables which represent 'C' arrays. Each array \n"
" variable can be referenced as a group (using just the name), or as \n"
" individual elements (with the [int] operator). Example:\n"
"      print myArray    # prints the full array.\n"
"      print myArray[3] # prints the 3rd elemement of the array \n"
   },
   { "sizes",
"Size operaters returns the size in bytes of a variable, or the number of\n"
" elements in an array.\n"
"    size(var) and sizeof(var) return the size of var in bytes.\n"
"    sizea(var) and sizeofarray(var) return the number of elements in var.\n"
"       If var is not an array, sizea(var) returns 1.\n"
   },
}

Definition at line 1369 of file pk11table.c.

Initial value:
 {
    "None",
    "Variable",
    "CK_ULONG",
    "Data",
    "UTF8",
    "CK_INFO",
    "CK_SLOT_INFO",
    "CK_TOKEN_INFO",
    "CK_SESSION_INFO",
    "CK_ATTRIBUTE",
    "CK_MECHANISM",
    "CK_MECHANISM_INFO",
    "CK_C_INITIALIZE_ARGS",
    "CK_FUNCTION_LIST"
}

Definition at line 40 of file pk11table.c.

const int commandCount = sizeof(_commands) / sizeof(_commands[0])

Definition at line 1367 of file pk11table.c.

Definition at line 1366 of file pk11table.c.

const int constCount = sizeof(_consts)/sizeof(_consts[0])

Definition at line 595 of file pk11table.c.

Definition at line 594 of file pk11table.c.

Definition at line 84 of file pk11table.c.

Definition at line 83 of file pk11table.c.

const int topicCount = sizeof(_topics)/sizeof(_topics[0])

Definition at line 1401 of file pk11table.c.

Definition at line 1400 of file pk11table.c.

Definition at line 58 of file pk11table.c.

Definition at line 57 of file pk11table.c.