forked from mirrors/gecko-dev
MozReview-Commit-ID: 270iURVhNRu This patch builds upon the existing DLL services functionality: 1) We add code to obtain the name of the subject from the cert used to sign a binary (if present). This code is added inside mozglue because in the future we will be using this code from the DLL blocklist, which is also located there. 2) We add annotation functionality that registers itself for DLL load events and updates crash reporter annotations as new libraries are loaded. It also annotates any existing libraries that are also in memory at the time that the CertAnnotator is first instantiated. This all happens off main thread, with the exception of actually making the annotation when in a child process. --HG-- extra : rebase_source : 2e3726d37356479aee81915caed04fe7af74c815
24 lines
640 B
C++
24 lines
640 B
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=8 sts=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/. */
|
|
|
|
#ifndef mozilla_Authenticode_h
|
|
#define mozilla_Authenticode_h
|
|
|
|
#include "mozilla/Maybe.h"
|
|
#include "mozilla/UniquePtr.h"
|
|
|
|
namespace mozilla {
|
|
|
|
class Authenticode
|
|
{
|
|
public:
|
|
virtual UniquePtr<wchar_t[]> GetBinaryOrgName(const wchar_t* aFilePath) = 0;
|
|
};
|
|
|
|
} // namespace mozilla
|
|
|
|
#endif // mozilla_Authenticode_h
|
|
|