mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix clang warning:Implicit conversion from enumeration
warning: implicit conversion from enumeration type 'ops_s2k_usage_t' to different enumeration type 'ops_symmetric_algorithm_t' [-Wenum- conversion] C.secret_key.algorithm=C.secret_key.s2k_usage; ~~~~~~~~~~~~~~^~~~~~~~~
This commit is contained in:
parent
b2e37fe47e
commit
cbc264f5a3
@ -2394,7 +2394,7 @@ static int parse_secret_key(ops_region_t *region,ops_parse_info_t *pinfo)
|
|||||||
else if(C.secret_key.s2k_usage != OPS_S2KU_NONE)
|
else if(C.secret_key.s2k_usage != OPS_S2KU_NONE)
|
||||||
{
|
{
|
||||||
// this is V3 style, looks just like a V4 simple hash
|
// this is V3 style, looks just like a V4 simple hash
|
||||||
C.secret_key.algorithm=C.secret_key.s2k_usage;
|
C.secret_key.algorithm=(ops_symmetric_algorithm_t)C.secret_key.s2k_usage;
|
||||||
C.secret_key.s2k_usage=OPS_S2KU_ENCRYPTED;
|
C.secret_key.s2k_usage=OPS_S2KU_ENCRYPTED;
|
||||||
C.secret_key.s2k_specifier=OPS_S2KS_SIMPLE;
|
C.secret_key.s2k_specifier=OPS_S2KS_SIMPLE;
|
||||||
C.secret_key.hash_algorithm=OPS_HASH_MD5;
|
C.secret_key.hash_algorithm=OPS_HASH_MD5;
|
||||||
|
Loading…
Reference in New Issue
Block a user