mirror of https://github.com/wolfSSL/wolfssl.git
Fix shadowed idx variable in PemToDer
Co-Authored-By: lealem@wolfssl.com <lealem@wolfssl.com>devin/1739556249-pem-hash-algorithm-fix
parent
20643226b6
commit
5fce4192dc
|
@ -25786,7 +25786,7 @@ int PemToDer(const unsigned char* buff, long longSz, int type,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Extract hash type from PBES2 parameters */
|
/* Extract hash type from PBES2 parameters */
|
||||||
word32 idx = 0;
|
idx = 0;
|
||||||
int hashType;
|
int hashType;
|
||||||
DECL_ASNGETDATA(dataASN, pbes2ParamsASN_Length);
|
DECL_ASNGETDATA(dataASN, pbes2ParamsASN_Length);
|
||||||
CALLOC_ASNGETDATA(dataASN, pbes2ParamsASN_Length, ret, NULL);
|
CALLOC_ASNGETDATA(dataASN, pbes2ParamsASN_Length, ret, NULL);
|
||||||
|
|
Loading…
Reference in New Issue