mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-17 22:40:06 -05: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
// 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_specifier=OPS_S2KS_SIMPLE;
|
||||
C.secret_key.hash_algorithm=OPS_HASH_MD5;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue