merces/pev — pull request #42 by jweyrich (2012-12-31 02:44:41+00:00)
Title: win_certificate: Suporte para extrair certificados de binários com assinatura digital.

A compact overview of all commits on this branch, in reverse order:

5decd899c0 Cosmetic change. Fix style of pointer return and arguments.
600505018f pesec: Support new CLI parameters --certoutform and --certout.
878d90b99d Fix missing static specifier for a couple of functions.
1d007537fe Fix sign conversion warning.
8fa06d374a Parse certificates from digitally signed PE's.
e9accc498d README now contains instructions on how to build in Mac OS X.
1d0ae4b6bd libpe: Ops, fix off-by-1 error (introduced with bbe12bd663).
8f185fe43e5 libpe: Fix missing cert types.
pesec: Handle unsupported/unknown values, and adjust printed data.
f8ace9ef656 libpe: Fix indentation and line-breaks.
fcfe9461984 libpe: Add very basic support for the security directory.
bbe12bd663 libpe: Introduce new function pe_get_data_directory().
46a81534b8 Fix possible memory leaks in pe_get_directories().

Please, pay attention to those commits prefixed with "libpe" as these replace some #defines with enums, introduce new APIs, etc.
I felt it would be good to split the headers in order to avoid code duplication (mainly lib/libpe/types.h). Also though it would be positive to have separate headers for specific directory types (example, lib/libpe/dir_entry_security.h), so we don't clutter libpe.h with specifics.

I've tested only on Mac OS X, so I'd love some feedback from more users.

Hope you enjoy it.