Blackberry PROFESSIONAL SOFTWARE FOR IBM LOTUS DOMINO - - RELEASE NOTES Podręcznik Użytkownika Strona 111

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 210
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 110
IBM Lotus Notes, Domino, Domino Designer 8 Release Notes
Here is some pseudocode to demonstrate the use of SECManipulateSC. As always, real code should
check for and handle errors.
error = SECManipulateSC (SC_manip_GetVersion,
NULLSCMCTX,
NULL,
&Version,
NULL);
/* SC_manip_PushKyrKey was added in Version 5 of this interface. If Version is
not at least 5, then that operation will fail. */
/* Initialize the PKCS#11 context.
*/
SCMCTX Context = NULLSCMCTX;
error = SECManipulateSC (SC_manip_InitializeContext,
&Context,
NULL, NULL, NULL);
/* Set up the server's ID file
*/
error = SECManipulateSC (SC_manip_EnterIDFile,
&Context,
NULL,
&dwIDLen,
ServerIDPath);
/* Unlock the smartcard
*/
error = SECManipulateSC (SC_manip_EnterPIN,
&Context,
NULL,
&dwPINLen,
PIN);
/* Note -- SC_manip_EnterPIN will use an external authentication path if it
exists. If the token doesn't support a protected authentication path,
SC_manip_EnterPIN will use the supplied PIN if one exists or generate a prompt
if a NULL or zero-length PIN was used. */
/* Smartcard-enable the server's ID file
*/
error = SECManipulateSC (SC_manip_SCEnableID,
&Context,
NULL,
&dwPwdLen,
ServerIDPwd);
/* Push the keyring private key to the token
*/
if (Version >= 5)
error = SECManipulateSC (SC_manip_PushKyrKey,
&Context,
NULL,
&dwKyrLen,
KyrPath);
100
Przeglądanie stron 110
1 2 ... 106 107 108 109 110 111 112 113 114 115 116 ... 209 210

Komentarze do niniejszej Instrukcji

Brak uwag