Skip to content

Conversation

@EvgeniyPatlan
Copy link
Contributor

Deal with openssl1.0.2k and old zlib.

remove additional check for centos7

#ifndef EVP_PKEY_get0_RSA
extern "C" {
static inline const RSA *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is hard to verify as implementation is different in various OpenSSL versions but probably a client doesn't use
Enterprise Encryption UDFs for OpenSSL at all so we should be safe.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra/opensslpp is Percona's Enterprise Encryption UDFs for OpenSSL

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tried to adopt it to solve compilation issue with openssl1.0.2k and as this build should be used just for tests I hope it should be fine :)

Comment on lines +41 to +45
#if ZLIB_VERNUM >= 0x1290
#define MY_CRC32(crc, buf, len) crc32_z(crc, buf, len)
#else
#define MY_CRC32(crc, buf, len) crc32(crc, buf, len)
#endif
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine.

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.

3 participants