"Liam Huang via GitGitGadget" [off-list ref] writes:
From: Liam Huang <redacted>
Some APIs have been changed since OpenSSL 1.1.0, so fix incompatibilities with OpenSSL 1.1.x.
I wonder if the patch can be made a lot less noisy with something
along this line
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#define OPENSSL_sk_num(x) sk_GENERAL_NAME_num(x)
#define OPENSSL_sk_value(x,y) sk_GENERAL_NAME_value((x),(y))
#define OPENSSL_sk_pop_free(x,y) sk_GENERAL_NAME_pop_free((x),(y))
#endif
which would allow you to reduce many #if/#else/#endif in the actual
code.