@@ -7656,8 +7656,8 @@ int gc_group_load(GC_Session *c, Bin_Unpack *bu)
76567656 return group_number ;
76577657}
76587658
7659- int gc_group_add (GC_Session * c , Group_Privacy_State privacy_state , const uint8_t * group_name ,
7660- uint16_t group_name_length ,
7659+ int gc_group_add (GC_Session * c , Group_Privacy_State privacy_state ,
7660+ const uint8_t * group_name , uint16_t group_name_length ,
76617661 const uint8_t * nick , size_t nick_length )
76627662{
76637663 if (group_name_length > MAX_GC_GROUP_NAME_SIZE ) {
@@ -7690,7 +7690,7 @@ int gc_group_add(GC_Session *c, Group_Privacy_State privacy_state, const uint8_t
76907690
76917691 crypto_memlock (chat -> chat_secret_key , sizeof (chat -> chat_secret_key ));
76927692
7693- create_extended_keypair (chat -> chat_public_key , chat -> chat_secret_key );
7693+ create_extended_keypair (chat -> chat_public_key , chat -> chat_secret_key , chat -> rng );
76947694
76957695 if (!init_gc_shared_state_founder (chat , privacy_state , group_name , group_name_length )) {
76967696 group_delete (c , chat );
@@ -8439,7 +8439,7 @@ static bool create_new_chat_ext_keypair(GC_Chat *chat)
84398439{
84408440 crypto_memlock (chat -> self_secret_key , sizeof (chat -> self_secret_key ));
84418441
8442- if (!create_extended_keypair (chat -> self_public_key , chat -> self_secret_key )) {
8442+ if (!create_extended_keypair (chat -> self_public_key , chat -> self_secret_key , chat -> rng )) {
84438443 crypto_memunlock (chat -> self_secret_key , sizeof (chat -> self_secret_key ));
84448444 return false;
84458445 }
0 commit comments