Skip to content

streams: openssl: add missing check on OPENSSL_LEGACY_API#4661

Merged
pks-t merged 1 commit intolibgit2:masterfrom
laomaiweng:patch-1
May 30, 2018
Merged

streams: openssl: add missing check on OPENSSL_LEGACY_API#4661
pks-t merged 1 commit intolibgit2:masterfrom
laomaiweng:patch-1

Conversation

@laomaiweng
Copy link
Copy Markdown
Contributor

The CRYPTO_THREADID type is no longer available in OpenSSL ≥ 1.1.0 with deprecated features disabled, and causes build failures. Since the threadid_cb() function is only ever called by git_openssl_set_locking() when defined(OPENSSL_LEGACY_API), only define it then.

The `CRYPTO_THREADID` type is no longer available in OpenSSL ≥ 1.1.0 with deprecated features disabled, and causes build failures. Since the `threadid_cb()` function is only ever called by `git_openssl_set_locking()` when `defined(OPENSSL_LEGACY_API)`, only define it then.
@pks-t pks-t merged commit 8a14846 into libgit2:master May 30, 2018
@pks-t
Copy link
Copy Markdown
Member

pks-t commented May 30, 2018

Thanks for your contribution, this is obviously correct!

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