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

Support libcrypto for hmac and sha256 #223

Merged
merged 2 commits into from Sep 25, 2023

Commits on Aug 9, 2023

  1. compat: Add OpenSSL libcrypto compatibility layer

    Detect libcrypto in configure script.  Only fall back
    to using libcrypto when /usr libs are allowed and no
    other compatible implementation is available or when
    --with-openssl is passed explicitly.
    Make sure libcrypto and libmd are never linked at the
    same time.
    
    Add OpenSSL based SHA256 and HMAC compat shims in
    compat/crypt_openssl. Depeding on version and build flags,
    libcrypto ships with a compatible SHA256 API in
    "openssl/sha.h".  OpenSSL 3 has deprecated the SHA API,
    so if it is not detected we fall back to an EVP_DIGEST
    based version.
    Because the API might still be in use in OpenSSL internally,
    the compatibility wrappers have a dhcpcd_ prefix to avoid
    symbol conflicts.
    tobhe committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    cde9ae6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bba4e98 View commit details
    Browse the repository at this point in the history