Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
e615891d
Commit
e615891d
authored
Sep 22, 2014
by
vvaltman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small bugfixes
parent
f496648d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
interface.c
interface.c
+2
-1
mtproto-client.c
mtproto-client.c
+5
-0
queries.c
queries.c
+2
-0
No files found.
interface.c
View file @
e615891d
...
...
@@ -1708,12 +1708,13 @@ void secret_chat_update_gw (struct tgl_secret_chat *U, unsigned flags) {
write_secret_chat_file
();
}
if
(
!
binlog_read
)
{
return
;
}
if
((
flags
&
TGL_UPDATE_REQUESTED
)
&&
!
disable_auto_accept
)
{
tgl_do_accept_encr_chat_request
(
U
,
0
,
0
);
}
if
(
disable_output
&&
!
notify_ev
)
{
return
;
}
if
(
!
binlog_read
)
{
return
;
}
struct
in_ev
*
ev
=
notify_ev
;
...
...
mtproto-client.c
View file @
e615891d
...
...
@@ -1408,12 +1408,17 @@ void tglmp_regenerate_temp_auth_key (struct tgl_dc *D) {
return
;
}
struct
tgl_session
*
S
=
D
->
sessions
[
0
];
tglt_secure_random
(
&
S
->
session_id
,
8
);
S
->
seq_no
=
0
;
event_del
(
S
->
ev
);
S
->
ack_tree
=
tree_clear_long
(
S
->
ack_tree
);
if
(
D
->
state
!=
st_authorized
)
{
return
;
}
if
(
S
->
c
)
{
create_temp_auth_key
(
S
->
c
);
...
...
queries.c
View file @
e615891d
...
...
@@ -2970,6 +2970,8 @@ void tgl_do_send_accept_encr_chat (struct tgl_secret_chat *E, unsigned char *ran
}
return
;
}
// Already generated key for this chat
assert
(
E
->
g_key
);
assert
(
tgl_state
.
BN_ctx
);
unsigned
char
random_here
[
256
];
tglt_secure_random
(
random_here
,
256
);
for
(
i
=
0
;
i
<
256
;
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment