• M
    Fix a race condition in supported groups handling · 45436e61
    Matt Caswell 提交于
    In TLSv1.3 the supported groups can be negotiated each time a handshake
    occurs, regardless of whether we are resuming or not. We should not store
    the supported groups information in the session because session objects
    can be shared between multiple threads and we can end up with race
    conditions. For most users this won't be seen because, by default, we
    use stateless tickets in TLSv1.3 which don't get shared. However if you
    use SSL_OP_NO_TICKET (to get stateful tickets in TLSv1.3) then this can
    happen.
    
    The answer is to move the supported the supported group information into
    the SSL object instead.
    Reviewed-by: NTomas Mraz <tmraz@fedoraproject.org>
    (Merged from https://github.com/openssl/openssl/pull/9162)
    45436e61
s3_lib.c 126.8 KB