|
| B_CreateSessionChooser |
|
| |
B_CreateSessionChooser |
| |
|
| |
int B_CreateSessionChooser ( |
| |
B_ALGORITHM_CHOOSER fixedChooser, | /* Chooser consisting of */ | |
| ||
B_ALGORITHM_CHOOSER *sessionChooser, | /* Runtime chooser */ | |
| /* dynamically bound to available hardware based methods. */ | |
HW_TABLE_ENTRY | *staticHardwareList[ ], | /* List of statically defined */ |
| /* hardware methods terminated by a */ | |
|
| /* properly cast NULL_PTR. */ |
ITEM | *passPhrase, | /* hardware passphrase */ |
POINTER | *amTagList, | /* For now pass (*)NULL_PTR */ |
unsigned char | ***listOfOEMTags | /* Returns list of OEM tags */ |
| /* for methods in sessionChooser */ | |
); |
|
|
|
|
|
Description
B_CreateSessionChooser replicates the fixed chooser inclusive of making private copies of the AM structures. Whenever possible the
Notes:
It is simple to limit the binding of hardware methods to exclusively static or dynamically defined entries. The algorithm method structures that constitute sessionChooser are B_METHOD structures extended to include an information pointer and a finalization function to destroy it.
Return value
Value | Description |
0 | Operation was successful. |
nonzero | unsuccessful, allocation error |
|
|
C h a p t e r 4 D e t a i l s o f C r y p t o - C F u n c t i o n s | 295 |