Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OTRv4
otrv4
Commits
8ed3d5fb
Verified
Commit
8ed3d5fb
authored
Oct 28, 2019
by
Sofia Celi
⛸
Browse files
Update other states
parent
af813b16
Changes
1
Hide whitespace changes
Inline
Side-by-side
otrv4.md
View file @
8ed3d5fb
...
...
@@ -3885,25 +3885,26 @@ If the state is `ENCRYPTED_MESSAGES` or `FINISHED`:
*
Remove the whitespace tag and display the message to the user. The user
should be warned that the message received was unencrypted.
For OTRv3, if msgstate is
`MSGSTATE_ENCRYPTED`
or
`MSGSTATE_FINISHED`
:
*
Display the message to the user. The user should be warned that the message
received was unencrypted.
For OTRv3, if msgstate is
`MSGSTATE_PLAINTEXT`
:
*
Remove the whitespace tag and display the message to the user. The user
should be warned that the message received was unencrypted.
In any event:
Otherwise:
*
If the tag offers OTR version 4 and version 4 is allowed:
*
Send an Identity message.
*
Transition the state to
`WAITING_AUTH_R`
.
*
If the tag offers OTR version 3 and version 3 is allowed:
*
Send a version
`3 D-H Commit Message`
.
*
Transition authstate to
`AUTHSTATE_AWAITING_DHKEY`
.
*
In any event, if
`WHITESPACE_START_AKE`
is set:
*
Send a version
`3 D-H Commit Message`
.
*
Transition authstate to
`AUTHSTATE_AWAITING_DHKEY`
.
For OTRv3:
*
If msgstate is
`MSGSTATE_ENCRYPTED`
or
`MSGSTATE_FINISHED`
:
*
Display the message to the user. The user should be warned that the message
received was unencrypted.
*
If msgstate is
`MSGSTATE_PLAINTEXT`
:
*
Remove the whitespace tag and display the message to the user. The user
should be warned that the message received was unencrypted.
#### Starting an online conversation after an offline one
...
...
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