Does Openssl support server certificate key usage validation during Tls handshake?

I want to understand if Openssl supports the key usage extension validation. If yes, how does it understand that each certificate in the chain received in server certificate correctly specifies the key usage ?