mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
Replace NSS with Pale Moon's
This commit is contained in:
parent
ff1e5e48bf
commit
8c2e376f94
2870 changed files with 1762232 additions and 1374220 deletions
|
|
@ -1,4 +1,5 @@
|
|||
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* vim: set ts=2 et sw=2 tw=80: */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
|
@ -7,9 +8,12 @@
|
|||
#define nss_scoped_ptrs_h__
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "cert.h"
|
||||
#include "keyhi.h"
|
||||
#include "nss.h"
|
||||
#include "p12.h"
|
||||
#include "pk11hpke.h"
|
||||
#include "pk11pqg.h"
|
||||
#include "pk11pub.h"
|
||||
#include "pkcs11uri.h"
|
||||
|
|
@ -26,6 +30,9 @@ struct ScopedDelete {
|
|||
void operator()(CERTSubjectPublicKeyInfo* spki) {
|
||||
SECKEY_DestroySubjectPublicKeyInfo(spki);
|
||||
}
|
||||
void operator()(HpkeContext* context) {
|
||||
PK11_HPKE_DestroyContext(context, true);
|
||||
}
|
||||
void operator()(PK11Context* context) { PK11_DestroyContext(context, true); }
|
||||
void operator()(PK11GenericObject* obj) { PK11_DestroyGenericObject(obj); }
|
||||
void operator()(PK11SlotInfo* slot) { PK11_FreeSlot(slot); }
|
||||
|
|
@ -58,6 +65,7 @@ struct ScopedDelete {
|
|||
void operator()(SEC_PKCS7ContentInfo* cinfo) {
|
||||
SEC_PKCS7DestroyContentInfo(cinfo);
|
||||
}
|
||||
void operator()(NSSInitContext* init) { NSS_ShutdownContext(init); }
|
||||
};
|
||||
|
||||
template <class T>
|
||||
|
|
@ -78,6 +86,8 @@ SCOPED(CERTCertificateList);
|
|||
SCOPED(CERTDistNames);
|
||||
SCOPED(CERTName);
|
||||
SCOPED(CERTSubjectPublicKeyInfo);
|
||||
SCOPED(HpkeContext);
|
||||
SCOPED(NSSInitContext);
|
||||
SCOPED(PK11Context);
|
||||
SCOPED(PK11GenericObject);
|
||||
SCOPED(PK11SlotInfo);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue