• M
    Fix SSL_check_chain() · 5235ef44
    Matt Caswell 提交于
    The function SSL_check_chain() can be used by applications to check that
    a cert and chain is compatible with the negotiated parameters. This could
    be useful (for example) from the certificate callback. Unfortunately this
    function was applying TLSv1.2 sig algs rules and did not work correctly if
    TLSv1.3 was negotiated.
    
    We refactor tls_choose_sigalg to split it up and create a new function
    find_sig_alg which can (optionally) take a certificate and key as
    parameters and find an appropriate sig alg if one exists. If the cert and
    key are not supplied then we try to find a cert and key from the ones we
    have available that matches the shared sig algs.
    Reviewed-by: NTomas Mraz <tmraz@fedoraproject.org>
    (Merged from https://github.com/openssl/openssl/pull/9442)
    5235ef44
t1_lib.c 92.8 KB