Skip to content

Add mingw-w64-openssl to the MinGW cross-compile toolchain #17

Description

@mark-e-deyoung

Required: Add mingw-w64-openssl to the MinGW cross-compile toolchain

WinInspect (github.com/SemperSupra/WinInspect) now requires OpenSSL for
SSH key-based authentication. The sign_ssh_msg() function uses OpenSSL's
PEM_read_bio_PrivateKey + EVP_DigestSign for Ed25519 signing.

Build dependency

When building WinInspect with the MinGW cross-compiler, the OpenSSL
development headers and libraries for MinGW are required:

# Debian/Ubuntu-based WBAB container
RUN apt-get install -y mingw-w64-openssl

Or if the distro packages it differently:

RUN apt-get install -y gcc-mingw-w64-x86-64-win32 mingw-w64
RUN apt-get install -y libssl-dev:mingw-w64-x86-64  # or similar

Verification

After the dependency is installed, WinInspect's CMake should detect
OpenSSL automatically:

cmake -B build -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release \
  -DWININSPECT_BUILD_TESTS=ON
# Look for: -- OpenSSL found: X.Y.Z

Runtime dependency

The built .exe also needs libcrypto-*.dll and libssl-*.dll at runtime.
These should be copied alongside the .exe into the Wine prefix or
container image.

Related

  • WinInspect CMakeLists.txt now sets WININSPECT_USE_OPENSSL=ON by default
  • WinInspect build auto-copies OpenSSL DLLs to the output directory

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions