зеркало из https://github.com/mozilla/gecko-dev.git
Bugzilla bug 123938: renamed cert_EncodeGeneralName to
CERT_EncodeGeneralName. Export CERT_EncodeGeneralName and CERT_FindKeyUsageExtension from nss.def. Have cmmfrec.c include nssrenam.h to get __CERT_NewTempCertificate. Modified Files: lib/certdb/genname.c lib/certdb/genname.h lib/certdb/xconst.c lib/crmf/cmmfchal.c lib/crmf/cmmfrec.c lib/nss/nss.def
This commit is contained in:
Родитель
3daf82f7d4
Коммит
993e97c4e8
|
@ -241,7 +241,7 @@ cert_get_prev_name_constraint(CERTNameConstraint *current)
|
||||||
}
|
}
|
||||||
|
|
||||||
SECItem *
|
SECItem *
|
||||||
cert_EncodeGeneralName(CERTGeneralName *genName, SECItem *dest, PRArenaPool *arena)
|
CERT_EncodeGeneralName(CERTGeneralName *genName, SECItem *dest, PRArenaPool *arena)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
@ -337,7 +337,7 @@ cert_EncodeGeneralNames(PRArenaPool *arena, CERTGeneralName *names)
|
||||||
goto loser;
|
goto loser;
|
||||||
}
|
}
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
items[i] = cert_EncodeGeneralName(current_name, (SECItem *) NULL, arena);
|
items[i] = CERT_EncodeGeneralName(current_name, (SECItem *) NULL, arena);
|
||||||
if (items[i] == NULL) {
|
if (items[i] == NULL) {
|
||||||
goto loser;
|
goto loser;
|
||||||
}
|
}
|
||||||
|
@ -477,7 +477,7 @@ cert_EncodeNameConstraint(CERTNameConstraint *constraint,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cert_EncodeGeneralName(&(constraint->name), &(constraint->DERName),
|
CERT_EncodeGeneralName(&(constraint->name), &(constraint->DERName),
|
||||||
arena);
|
arena);
|
||||||
|
|
||||||
dest = SEC_ASN1EncodeItem (arena, dest, constraint,
|
dest = SEC_ASN1EncodeItem (arena, dest, constraint,
|
||||||
|
|
|
@ -53,7 +53,7 @@ extern CERTGeneralName *
|
||||||
cert_get_prev_general_name(CERTGeneralName *current);
|
cert_get_prev_general_name(CERTGeneralName *current);
|
||||||
|
|
||||||
extern SECItem *
|
extern SECItem *
|
||||||
cert_EncodeGeneralName(CERTGeneralName *genName, SECItem *dest,
|
CERT_EncodeGeneralName(CERTGeneralName *genName, SECItem *dest,
|
||||||
PRArenaPool *arena);
|
PRArenaPool *arena);
|
||||||
|
|
||||||
extern SECItem **
|
extern SECItem **
|
||||||
|
|
|
@ -239,7 +239,7 @@ cert_EncodeAuthInfoAccessExtension(PRArenaPool *arena,
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; info[i] != NULL; i++) {
|
for (i = 0; info[i] != NULL; i++) {
|
||||||
if (cert_EncodeGeneralName(info[i]->location, &(info[i]->derLocation),
|
if (CERT_EncodeGeneralName(info[i]->location, &(info[i]->derLocation),
|
||||||
arena) == NULL)
|
arena) == NULL)
|
||||||
/* Note that this may leave some of the locations filled in. */
|
/* Note that this may leave some of the locations filled in. */
|
||||||
return SECFailure;
|
return SECFailure;
|
||||||
|
|
|
@ -227,7 +227,7 @@ CMMF_POPODecKeyChallContentSetNextChallenge
|
||||||
mark = PORT_ArenaMark(poolp);
|
mark = PORT_ArenaMark(poolp);
|
||||||
|
|
||||||
genNamePool = PORT_NewArena(CRMF_DEFAULT_ARENA_SIZE);
|
genNamePool = PORT_NewArena(CRMF_DEFAULT_ARENA_SIZE);
|
||||||
genNameDER = cert_EncodeGeneralName(inSender, NULL, genNamePool);
|
genNameDER = CERT_EncodeGeneralName(inSender, NULL, genNamePool);
|
||||||
if (genNameDER == NULL) {
|
if (genNameDER == NULL) {
|
||||||
rv = SECFailure;
|
rv = SECFailure;
|
||||||
goto loser;
|
goto loser;
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
* CMMF
|
* CMMF
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "nssrenam.h"
|
||||||
#include "cmmf.h"
|
#include "cmmf.h"
|
||||||
#include "cmmfi.h"
|
#include "cmmfi.h"
|
||||||
#include "secitem.h"
|
#include "secitem.h"
|
||||||
|
|
|
@ -577,9 +577,11 @@ CERT_DecodeAVAValue;
|
||||||
cert_DecodeGeneralName;
|
cert_DecodeGeneralName;
|
||||||
CERT_DecodeTrustString;
|
CERT_DecodeTrustString;
|
||||||
CERT_DerNameToAscii;
|
CERT_DerNameToAscii;
|
||||||
|
CERT_EncodeGeneralName;
|
||||||
CERT_FilterCertListByCANames;
|
CERT_FilterCertListByCANames;
|
||||||
CERT_FilterCertListByUsage;
|
CERT_FilterCertListByUsage;
|
||||||
CERT_FindCertExtension;
|
CERT_FindCertExtension;
|
||||||
|
CERT_FindKeyUsageExtension;
|
||||||
CERT_FindUserCertByUsage;
|
CERT_FindUserCertByUsage;
|
||||||
CERT_FindUserCertsByUsage;
|
CERT_FindUserCertsByUsage;
|
||||||
CERT_GetCertChainFromCert;
|
CERT_GetCertChainFromCert;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче