Thread (1 message) 1 message, 1 author, 2020-01-07

Re: [PATCH 1/1] Update imap-send.c, fix incompatibilities with OpenSSL 1.1.x

From: Junio C Hamano <hidden>
Date: 2020-01-07 20:19:23

"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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help