mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
Changed tabs to spaces to be consistent with the project's convention
This commit is contained in:
32
src/ssl.c
32
src/ssl.c
@@ -12249,29 +12249,29 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
|
|||||||
XMEMSET(info, 0, sizeof(EncryptedInfo));
|
XMEMSET(info, 0, sizeof(EncryptedInfo));
|
||||||
|
|
||||||
ret = wc_EncryptedInfoGet(info, type);
|
ret = wc_EncryptedInfoGet(info, type);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
if (data == NULL) {
|
if (data == NULL) {
|
||||||
ret = info->keySz;
|
ret = info->keySz;
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = wolfSSL_EVP_get_hashinfo(md, &hashType, NULL);
|
ret = wolfSSL_EVP_get_hashinfo(md, &hashType, NULL);
|
||||||
if (ret == WOLFSSL_FAILURE)
|
if (ret == WOLFSSL_FAILURE)
|
||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
ret = wc_PBKDF1_ex(key, info->keySz, iv, info->ivSz, data, sz, salt,
|
ret = wc_PBKDF1_ex(key, info->keySz, iv, info->ivSz, data, sz, salt,
|
||||||
EVP_SALT_SIZE, count, hashType, NULL);
|
EVP_SALT_SIZE, count, hashType, NULL);
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
ret = info->keySz;
|
ret = info->keySz;
|
||||||
|
|
||||||
end:
|
end:
|
||||||
#ifdef WOLFSSL_SMALL_STACK
|
#ifdef WOLFSSL_SMALL_STACK
|
||||||
XFREE(info, NULL, DYNAMIC_TYPE_ENCRYPTEDINFO);
|
XFREE(info, NULL, DYNAMIC_TYPE_ENCRYPTEDINFO);
|
||||||
#endif
|
#endif
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return 0; /* failure - for compatibility */
|
return 0; /* failure - for compatibility */
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user