Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 1316966 - Speed up nssfuzz cert target r=franziskus
  • Loading branch information
Tim Taubert committed Nov 14, 2016
1 parent 05125aa commit 88bd6b6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fuzz/cert_target.cc
Expand Up @@ -19,11 +19,8 @@ extern "C" int cert_fuzzing_target(const uint8_t *Data, size_t Size) {
static std::unique_ptr<NSSDatabase> db(new NSSDatabase());
assert(db != nullptr);

static CERTCertDBHandle *certDB = CERT_GetDefaultCertDB();
assert(certDB != NULL);

CERTCertificate *cert =
CERT_NewTempCertificate(certDB, &data, nullptr, false, true);
CERT_DecodeDERCertificate(&data, false, const_cast<char*>("certificate"));

if (cert) {
CERT_DestroyCertificate(cert);
Expand Down

0 comments on commit 88bd6b6

Please sign in to comment.