| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
add reference to matrix-bifrost
|
| |
|
|
|
| |
Fixes #132
|
|
|
| |
Fix segfault when processing replies with no `content-type`.
|
| |
|
| |
|
|\
| |
| | |
Build failure workaround: _on_typing
|
|/
|
|
|
|
|
|
|
|
|
|
| |
We have a report of gcc not liking old_user_ids being unitialised;
but as far as I can tell it doesn't matter when old_len is set to 0
because the loop won't happen.
Set it to NULL and hope it placates gcc.
Fixes: 108
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|
|\
| |
| | |
Add an option to get markdown, not HTML
|
|/
|
|
| |
Fixes #116
|
|
|
| |
This, in turn, allows bitlbee to automatically reattempt to reconnect.
|
|
|
|
| |
connected (#111)
|
|\
| |
| | |
Login updates: Avoid the outdated login API and store access tokens
|
| |
| |
| |
| |
| |
| |
| | |
I'd seen a whoami or one time hit the 1k limit - I think possibly
in an error response from one time key uploads.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|
| |
| |
| |
| |
| |
| |
| | |
If we've got a stored access token, try that (by testing with a 'whoami'
call) and if it fails fall back to passworded login.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
By default purple asks for a password if there's none stored, but
when we use an access token we'll want to have no password prompt
at all. To do this we flag OPT_PROTO_PASSWORD_OPTIONAL
and then have to handle the case with no password manually.
Mostly cribbed from jabber/auth_cyrus.c
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
_login_completed currently fills in the account data from the login
transaction and then kicks off the initial sync.
Split the code to do the initial sync out; we're going to need to use it
in a different case later on.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|
| |
| |
| |
| |
| |
| | |
Store the access token we get after login.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|
| |
| |
| |
| |
| |
| | |
Add the 'whoami' api call, as a means to validate an access token
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|
|/
|
|
|
|
|
|
|
| |
Synapse got r0/login in Jan 2016 (pull 459), so lets use it
instead of the ancient api/v1/login.
Fixes: https://github.com/matrix-org/purple-matrix/issues/100
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|
|\
| |
| | |
turn off deprecation warnings to workaround GParameter
|
|/
|
|
|
| |
https://developer.pidgin.im/ticket/17415
https://github.com/matrix-org/purple-matrix/issues/101
|
|
|
|
|
| |
This is the package needed for building `purple-matrix` on Ubuntu
16.04+. Also removed trailing whitespace.
|
|\
| |
| | |
Small improvements to make installation easier
|
| | |
|
| | |
|
|/
|
|
|
| |
Before, if one of the packages was not found, CFLAGS was not updated, which led
to unexpected error messages.
|
|\
| |
| | |
README: Remove unimplemented item from now implemented feature
|
| | |
|
|\ \
| | |
| | | |
Add badge to README with link to room
|
| | | |
|
|\ \ \
| |/ /
|/| | |
Make it clear that decryption is supported
|
|/ /
| |
| | |
README isn't very clear that decryption is supported but encryption is not. Got reports that someone was able to decrypt messages in pidgin and thought everyone thought that encryption was broken for a second. https://matrix.to/#/!iNmaIQExDMeqdITdHH:matrix.org/$15487094581170217pdtaL:matrix.org?via=matrix.org&via=linuxgaming.life&via=disroot.org
|
|\ \
| | |
| | | |
e2e: Link with libgcrypt
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Link with libgcrypt when e2e is enabled.
Build for Windows is not tested.
Fixes #83
|
|\ \ \
| |/ /
|/| | |
Do not include gcrypt.h in matrix-room.c
|
|/ /
| |
| |
| | |
Nothing from gcrypt is used in matrix-room.c.
|
|\ \
| |/
|/| |
E2E support
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Use the previously stashed crypto data to decrypt the image.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|
| |
| |
| |
| |
| |
| |
| | |
Pass the received image data through gcrypt to do the decryption
using the previously received keys.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|
| |
| |
| |
| |
| |
| |
| | |
m.image messages in the e2e world have a different format and
include keys. Decode the extra structures.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
For encrypted images the decrypted message contains key information
to decrypt the actual media once received.
Add a structure and a parser to extract the information from the JSON.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|
| |
| |
| |
| |
| |
| |
| | |
JSON web signatures almost use base64 but with a slightly odd encoding;
decoding a JWS to base64.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|
| |
| |
| |
| |
| |
| |
| | |
Add a purple action (i.e. thing on the accounts->matrix-> menu)
to display the device ID and public key.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|
| |
| |
| |
| |
| |
| | |
Cleanup on closing the plugin or leaving a conversation.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|
| |
| |
| |
| |
| |
| | |
Update sessions stored in the db after starting sessions.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|
| |
| |
| |
| | |
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|
| |
| |
| |
| |
| |
| |
| | |
Keep a hash/list of olm sessions in memory and load them from the db
if we find we haven't got one.
Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
|