зеркало из https://github.com/mozilla/pjs.git
Fix for 190424 - don't query CKA_NETSCAPE_EMAIL attribute . r=wtc
This commit is contained in:
Родитель
f78b0101e5
Коммит
e3c369562b
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
|
||||
#ifdef DEBUG
|
||||
static const char CVS_ID[] = "@(#) $RCSfile: ckhelper.c,v $ $Revision: 1.27 $ $Date: 2002-10-10 20:30:10 $ $Name: $";
|
||||
static const char CVS_ID[] = "@(#) $RCSfile: ckhelper.c,v $ $Revision: 1.28 $ $Date: 2003-01-30 03:02:55 $ $Name: $";
|
||||
#endif /* DEBUG */
|
||||
|
||||
#ifndef NSSCKEPV_H
|
||||
|
@ -319,8 +319,7 @@ nssCryptokiCertificate_GetAttributes
|
|||
NSSDER *encodingOpt,
|
||||
NSSDER *issuerOpt,
|
||||
NSSDER *serialOpt,
|
||||
NSSDER *subjectOpt,
|
||||
NSSASCII7 **emailOpt
|
||||
NSSDER *subjectOpt
|
||||
)
|
||||
{
|
||||
PRStatus status;
|
||||
|
@ -329,7 +328,7 @@ nssCryptokiCertificate_GetAttributes
|
|||
NSSSlot *slot;
|
||||
CK_ULONG template_size;
|
||||
CK_ATTRIBUTE_PTR attr;
|
||||
CK_ATTRIBUTE cert_template[7];
|
||||
CK_ATTRIBUTE cert_template[6];
|
||||
/* Set up a template of all options chosen by caller */
|
||||
NSS_CK_TEMPLATE_START(cert_template, attr, template_size);
|
||||
if (certTypeOpt) {
|
||||
|
@ -350,9 +349,6 @@ nssCryptokiCertificate_GetAttributes
|
|||
if (subjectOpt) {
|
||||
NSS_CK_SET_ATTRIBUTE_NULL(attr, CKA_SUBJECT);
|
||||
}
|
||||
if (emailOpt) {
|
||||
NSS_CK_SET_ATTRIBUTE_NULL(attr, CKA_NETSCAPE_EMAIL);
|
||||
}
|
||||
NSS_CK_TEMPLATE_FINISH(cert_template, attr, template_size);
|
||||
if (template_size == 0) {
|
||||
/* caller didn't want anything */
|
||||
|
@ -397,9 +393,6 @@ nssCryptokiCertificate_GetAttributes
|
|||
if (subjectOpt) {
|
||||
NSS_CK_ATTRIBUTE_TO_ITEM(&cert_template[i], subjectOpt); i++;
|
||||
}
|
||||
if (emailOpt) {
|
||||
NSS_CK_ATTRIBUTE_TO_UTF8(&cert_template[i], *emailOpt); i++;
|
||||
}
|
||||
return PR_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
*/
|
||||
|
||||
#ifdef DEBUG
|
||||
static const char DEV_CVS_ID[] = "@(#) $RCSfile: dev.h,v $ $Revision: 1.31 $ $Date: 2002-08-30 22:56:58 $ $Name: $";
|
||||
static const char DEV_CVS_ID[] = "@(#) $RCSfile: dev.h,v $ $Revision: 1.32 $ $Date: 2003-01-30 03:02:55 $ $Name: $";
|
||||
#endif /* DEBUG */
|
||||
|
||||
#ifndef NSSCKT_H
|
||||
|
@ -732,8 +732,7 @@ nssCryptokiCertificate_GetAttributes
|
|||
NSSDER *encodingOpt,
|
||||
NSSDER *issuerOpt,
|
||||
NSSDER *serialOpt,
|
||||
NSSDER *subjectOpt,
|
||||
NSSASCII7 **emailOpt
|
||||
NSSDER *subjectOpt
|
||||
);
|
||||
|
||||
NSS_EXTERN PRStatus
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
|
||||
#ifdef DEBUG
|
||||
static const char CVS_ID[] = "@(#) $RCSfile: pkibase.c,v $ $Revision: 1.18 $ $Date: 2003-01-09 04:29:01 $ $Name: $";
|
||||
static const char CVS_ID[] = "@(#) $RCSfile: pkibase.c,v $ $Revision: 1.19 $ $Date: 2003-01-30 03:02:35 $ $Name: $";
|
||||
#endif /* DEBUG */
|
||||
|
||||
#ifndef DEV_H
|
||||
|
@ -1015,8 +1015,7 @@ cert_getUIDFromInstance(nssCryptokiObject *instance, NSSItem *uid,
|
|||
&uid[0], /* encoding */
|
||||
NULL, /* issuer */
|
||||
NULL, /* serial */
|
||||
NULL, /* subject */
|
||||
NULL); /* email */
|
||||
NULL); /* subject */
|
||||
#else
|
||||
return nssCryptokiCertificate_GetAttributes(instance,
|
||||
NULL, /* XXX sessionOpt */
|
||||
|
@ -1026,8 +1025,7 @@ cert_getUIDFromInstance(nssCryptokiObject *instance, NSSItem *uid,
|
|||
NULL, /* encoding */
|
||||
&uid[0], /* issuer */
|
||||
&uid[1], /* serial */
|
||||
NULL, /* subject */
|
||||
NULL); /* email */
|
||||
NULL); /* subject */
|
||||
#endif /* NSS_3_4_CODE */
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче