git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 7, 2020, 20:19 UTC
Message-ID
<xmqqpnfv3tq4.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<8c96c56a1818b066d4570873e00c52d42399e3c2.1578391376.git.gitgitgadget@gmail.com>
"Liam Huang via GitGitGadget" <gitgitgadget@gmail.com> writes:
> From: Liam Huang <Liam0205@users.noreply.github.com>
>
> 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.

Previous: Liam Huang via GitGitGadgetNext: Johannes Schindelin
Message 3 of 10 in “Update imap-send.c, fix incompatibilities with OpenSSL 1.1.x”
  1. 0/1 Update imap-send.c, fix incompatibilities with OpenSSL 1.1.xLiam Huang via GitGitGadget, Jan 7, 2020
  2. 1/1 Update imap-send.c, fix incompatibilities with OpenSSL 1.1.xLiam Huang via GitGitGadget, Jan 7, 2020
  3. Junio C HamanoJan 7, 2020
  4. Johannes SchindelinJan 7, 2020
  5. Junio C HamanoJan 7, 2020
  6. Johannes SchindelinJan 7, 2020
  7. Junio C HamanoJan 7, 2020
  8. Junio C HamanoJan 7, 2020
  9. Johannes SchindelinJan 8, 2020
  10. Junio C HamanoJan 8, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.