Bug 119500 PKCS#11 CKF_PROTECTED_AUTHENTICATION_PATH token flag not supported

wtc's review r=wtc
This commit is contained in:
relyea%netscape.com 2005-09-29 23:44:39 +00:00
Родитель ec06304a0f
Коммит b8ff00fa4d
2 изменённых файлов: 9 добавлений и 8 удалений

Просмотреть файл

@ -567,7 +567,7 @@ PK11_DoPassword(PK11SlotInfo *slot, PRBool loadCerts, void *wincx)
* we can skip our own C_Login call (which would force the token to * we can skip our own C_Login call (which would force the token to
* try to login again). * try to login again).
* *
* Applications that don't know about protectedPinAuth will return a * Applications that don't know about protectedAuthPath will return a
* password, which we will ignore and trigger the token to * password, which we will ignore and trigger the token to
* 'authenticate' itself anyway. Hopefully the blinking display on * 'authenticate' itself anyway. Hopefully the blinking display on
* the reader, or the flashing light under the thumbprint reader will * the reader, or the flashing light under the thumbprint reader will
@ -579,9 +579,10 @@ PK11_DoPassword(PK11SlotInfo *slot, PRBool loadCerts, void *wincx)
if (strcmp(password, PK11_PW_RETRY) == 0) { if (strcmp(password, PK11_PW_RETRY) == 0) {
rv = SECWouldBlock; rv = SECWouldBlock;
PORT_Free(password); PORT_Free(password);
break; continue;
}
/* applicaton tried to authenticate and succeeded we're done */ /* applicaton tried to authenticate and succeeded we're done */
} else if (strcmp(password, PK11_PW_AUTHENTICATED) == 0) { if (strcmp(password, PK11_PW_AUTHENTICATED) == 0) {
rv = SECSuccess; rv = SECSuccess;
PORT_Free(password); PORT_Free(password);
break; break;

Просмотреть файл

@ -390,7 +390,7 @@ typedef PRBool (PR_CALLBACK *PK11IsLoggedInFunc)(PK11SlotInfo *slot, void *arg);
/* /*
* Special strings the password callback function can return only if * Special strings the password callback function can return only if
* the slot is an protected pin path slot. * the slot is an protected auth path slot.
*/ */
#define PK11_PW_RETRY "RETRY" /* an failed attempt to authenticate #define PK11_PW_RETRY "RETRY" /* an failed attempt to authenticate
* has already been made, just retry * has already been made, just retry
@ -399,9 +399,9 @@ typedef PRBool (PR_CALLBACK *PK11IsLoggedInFunc)(PK11SlotInfo *slot, void *arg);
* has completed. Continue without * has completed. Continue without
* another call to C_Login */ * another call to C_Login */
/* All other non-null values mean that that NSS could call C_Login to force /* All other non-null values mean that that NSS could call C_Login to force
* the authentication. The following define is to add applications in * the authentication. The following define is to aid applications in
* documenting that is what it's trying to do */ * documenting that is what it's trying to do */
#define PK11_PW_TRY "" /* Default: a prompt has been presented #define PK11_PW_TRY "TRY" /* Default: a prompt has been presented
* to the user, initiate a C_Login * to the user, initiate a C_Login
* to authenticate the token */ * to authenticate the token */