mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
Alter the variable name
Alter the variable name to make it more meaningful. Signed-off-by: Jiasheng Jiang <jiasheng@purdue.edu> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: Neil Horman <nhorman@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23942)
This commit is contained in:
parent
bcf81f742d
commit
d53497670d
@ -247,14 +247,14 @@ int tls13_generate_master_secret(SSL_CONNECTION *s, unsigned char *out,
|
||||
size_t *secret_size)
|
||||
{
|
||||
const EVP_MD *md = ssl_handshake_md(s);
|
||||
int tmpsize;
|
||||
int md_size;
|
||||
|
||||
tmpsize = EVP_MD_get_size(md);
|
||||
if (tmpsize <= 0) {
|
||||
md_size = EVP_MD_get_size(md);
|
||||
if (md_size <= 0) {
|
||||
SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR);
|
||||
return 0;
|
||||
}
|
||||
*secret_size = (size_t)tmpsize;
|
||||
*secret_size = (size_t)md_size;
|
||||
/* Calls SSLfatal() if required */
|
||||
return tls13_generate_secret(s, md, prev, NULL, 0, out);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user