Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gitgitgadget/git
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: gitgitgadget/git
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bb/imap-send-openssl-set-verify
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 1 file changed
  • 1 contributor

Commits on Oct 17, 2026

  1. imap-send: use the recommended TLS_method()

    SSLv23_method() has been deprecated since OpenSSL 1.1.0, and
    TLS_method() is the recommended function[1].
    
    Let's use the current function, lest a reader of the code thinks we
    don't support current TLS versions.
    
    [1]: https://docs.openssl.org/master/man3/SSL_CTX_new/#history
    
    Signed-off-by: Beat Bolli <[email protected]>
    Signed-off-by: Junio C Hamano <[email protected]>
    bbolli authored and gitster committed Oct 17, 2026
    Configuration menu
    Copy the full SHA
    1fffa09 View commit details
    Browse the repository at this point in the history
  2. imap-send: let OpenSSL do the hostname verification

    imap-send performs its own TLS hostname verification. This is not ideal
    because it does not support all certificate features.
    
    Let's use OpenSSL built-in verification, which is supported in its
    current form since OpenSSL 1.1.0. This gets us all present and future
    improvements done by OpenSSL for free. E.g., the old code did not handle
    IP addresses in the subject alternative names, while the new code does.
    
    If the verification fails, print the error message as returned by
    OpenSSL.
    
    [1]: https://wiki.openssl.org/index.php/Hostname_validation
    
    Suggested-by: brian m. carlson <[email protected]>
    Signed-off-by: Beat Bolli <[email protected]>
    Signed-off-by: Junio C Hamano <[email protected]>
    bbolli authored and gitster committed Oct 17, 2026
    Configuration menu
    Copy the full SHA
    9093987 View commit details
    Browse the repository at this point in the history
  3. imap-send: prepare for OpenSSL 4.0

    OpenSSL 4.0 deprecated the SSL_set1_host function if favor of the new
    function SSL_set1_dnsname, which fortunately takes the same parameters.
    
    Add compatibility #defines for the function and its string variant for
    the error message.
    
    Signed-off-by: Beat Bolli <[email protected]>
    Signed-off-by: Junio C Hamano <[email protected]>
    bbolli authored and gitster committed Oct 17, 2026
    Configuration menu
    Copy the full SHA
    aa19193 View commit details
    Browse the repository at this point in the history
Loading