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

Make mz_crypt_openssl.c work with BoringSSL #583

Merged
merged 1 commit into from
Jul 10, 2021
Merged

Conversation

nigeltao
Copy link
Contributor

BoringSSL does not provide cms.h but this is an optional dependency for
minizip, conditional on defined(MZ_ZIP_SIGNING).

For the functions called by mz_crypt_init:

  • The OpenSSL_add_all_algorithms function is declared in evp.h.
    OpenSSL's hmac.h includes evp.h but BoringSSL's hmac.h does not.
  • The ERR_* functions are declared in err.h in both.
  • The ENGINE_* functions are declared in engine.h in OpenSSL but are in
    crypto.h for BoringSSL.

BoringSSL does not provide cms.h but this is an optional dependency for
minizip, conditional on defined(MZ_ZIP_SIGNING).

For the functions called by mz_crypt_init:
- The OpenSSL_add_all_algorithms function is declared in evp.h.
  OpenSSL's hmac.h includes evp.h but BoringSSL's hmac.h does not.
- The ERR_* functions are declared in err.h in both.
- The ENGINE_* functions are declared in engine.h in OpenSSL but are in
  crypto.h for BoringSSL.
@nmoinvaz nmoinvaz changed the base branch from master to dev July 10, 2021 16:45
@nmoinvaz nmoinvaz merged commit d42634c into zlib-ng:dev Jul 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants