Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modules/pe/authenticode: Add Wincrypt API support for authenticode on Windows #2053

Closed
wants to merge 4 commits into from

Commits on Mar 14, 2024

  1. Add helpers to handle errors

    - Added GOTO_EXIT_ON_NULL maccro to handle cleanup after NULL on allocations
    - Added GOTO_EXIT_ON_FAIL maccro to perform post-failure cleanup
    
    Sponsored by Stormshield
    lucas-soares-npro committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    707a43a View commit details
    Browse the repository at this point in the history
  2. Use yr_malloc/yr_calloc/yr_realloc/yr_free/yr_strdup in authenticode

    - Replace all occurences of malloc/calloc/realloc/free/strdup by their Yara defined counterparts
    
    Sponsored by Stormshield
    lucas-soares-npro committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    1b72c1c View commit details
    Browse the repository at this point in the history
  3. Add windows wincrypt support for Yara authenticode

    - Added windows crypto support for Yara, to go without OpenSSL
    - Added USE_WINCRYPT_AUTHENTICODE to be defined for Yara to use windows crypto API for authenticode
    - Now using USE_WINCRYPT_AUTHENTICODE to exclude code using OpenSSL, where HAVE_WINCRYPT_H have to be defined along it
    - Updated visual studio project files to add new files, and use wincrypt API by default
    
    Sponsored by Stormshield
    lucas-soares-npro committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    ff71c3c View commit details
    Browse the repository at this point in the history
  4. Fix Visual Studio 2015 vcxproj typo

    Sponsored by Stormshield
    lucas-soares-npro committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    807ae28 View commit details
    Browse the repository at this point in the history