Wireshark-commits: [Wireshark-commits] master ac58eaf: Add support for RSA decryption using PKCS #1

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sat, 29 Dec 2018 10:40:21 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=ac58eafa3223ef40b9b60765b0b3d118f338fffc
Submitter: "Peter Wu <peter@xxxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

ac58eaf by Peter Wu (peter@xxxxxxxxxxxxx):

    Add support for RSA decryption using PKCS #11 tokens
    
    Add support for loading RSA private key files from PKCS #11 tokens,
    identified by PKCS #11 URIs. Add a new 'pkcs11_libs' UAT which can
    dynamically load PKCS #11 provider libraries that are not found by
    p11-kit.
    
    The configuration GUI will need additional code to discover available
    PKCS #11 tokens and will be added later.
    
    This feature requires GnuTLS 3.4 with PKCS #11 support, so Windows,
    macOS via Homebrew, Ubuntu 16.04, Debian Stretch. Not supported: RHEL7.
    Currently macOS via official packages disables PKCS #11 support, so that
    will also not work.
    
    Change-Id: I20646bfd69c6bd13c8c2d27cb65c164a4b0b7a66
    Reviewed-on: https://code.wireshark.org/review/30855
    Petri-Dish: Peter Wu <peter@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
    

Actions performed:

    from  53d8e6d   Lua: fix crash in reloading Lua plugins that use FileHandler
     add  ac58eaf   Add support for RSA decryption using PKCS #11 tokens


Summary of changes:
 .travis.yml              |   3 +-
 CMakeLists.txt           |  18 +++-
 CMakeOptions.txt         |   2 +-
 appveyor.yml             |   3 +
 cmakeconfig.h.in         |   3 +
 epan/epan.c              |   3 +
 epan/secrets.c           | 221 +++++++++++++++++++++++++++++++++++++++++++++++
 test/fixtures_ws.py      |   2 +
 test/keys/rsa-p-lt-q.p8  |  16 ++++
 test/suite_decryption.py | 124 ++++++++++++++++++++++++++
 tools/debian-setup.sh    |  51 ++++++++---
 11 files changed, 431 insertions(+), 15 deletions(-)
 create mode 100644 test/keys/rsa-p-lt-q.p8