Skip to content

Make mz_crypt_openssl.c work with BoringSSL - #583

Merged
nmoinvaz merged 1 commit into
zlib-ng:devfrom
nigeltao:master
Jul 10, 2021
Merged

nmoinvaz merged 1 commit into
zlib-ng:devfrom
nigeltao:master

Conversation

@nigeltao

Copy link
Copy Markdown
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