зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1562952 - #ifdef-out NSS and certificate-related flags with NO_SIGN_VERIFY. r=rstrong
Differential Revision: https://phabricator.services.mozilla.com/D36991 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
79919f31ad
Коммит
2e02a47093
|
@ -124,16 +124,15 @@ static int mar_test(const char* path) {
|
|||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
char* NSSConfigDir = NULL;
|
||||
const char* certNames[MAX_SIGNATURES];
|
||||
char* MARChannelID = MAR_CHANNEL_ID;
|
||||
char* productVersion = MOZ_APP_VERSION;
|
||||
uint32_t k;
|
||||
int rv = -1;
|
||||
#if !defined(NO_SIGN_VERIFY)
|
||||
char* NSSConfigDir = NULL;
|
||||
uint32_t k;
|
||||
uint32_t certCount = 0;
|
||||
int32_t sigIndex = -1;
|
||||
|
||||
#if !defined(NO_SIGN_VERIFY)
|
||||
uint32_t fileSizes[MAX_SIGNATURES];
|
||||
const uint8_t* certBuffers[MAX_SIGNATURES];
|
||||
# if ((!defined(MAR_NSS) && defined(XP_WIN)) || defined(XP_MACOSX)) || \
|
||||
|
@ -181,8 +180,8 @@ int main(int argc, char** argv) {
|
|||
argv += 2;
|
||||
argc -= 2;
|
||||
}
|
||||
#if !defined(NO_SIGN_VERIFY) && \
|
||||
((!defined(MAR_NSS) && defined(XP_WIN)) || defined(XP_MACOSX))
|
||||
#if !defined(NO_SIGN_VERIFY)
|
||||
#if (!defined(MAR_NSS) && defined(XP_WIN)) || defined(XP_MACOSX)
|
||||
/* -D DERFilePath, also matches -D[index] DERFilePath
|
||||
We allow an index for verifying to be symmetric
|
||||
with the import and export command line arguments. */
|
||||
|
@ -223,7 +222,9 @@ int main(int argc, char** argv) {
|
|||
argv += 2;
|
||||
argc -= 2;
|
||||
}
|
||||
} else if (argv[1][0] == '-' && argv[1][1] == 'H') { // MAR channel ID
|
||||
}
|
||||
#endif
|
||||
else if (argv[1][0] == '-' && argv[1][1] == 'H') { // MAR channel ID
|
||||
MARChannelID = argv[2];
|
||||
argv += 2;
|
||||
argc -= 2;
|
||||
|
|
Загрузка…
Ссылка в новой задаче