]> www.infradead.org Git - pidgin-chime.git/log
pidgin-chime.git
5 years agoLess beeping for ancient messages.
David Woodhouse [Tue, 31 Mar 2020 22:44:40 +0000 (23:44 +0100)]
Less beeping for ancient messages.

5 years agoAdd chime_conversation_get_created_on()
David Woodhouse [Tue, 31 Mar 2020 22:44:26 +0000 (23:44 +0100)]
Add chime_conversation_get_created_on()

5 years agoDon't fetch all rooms at startup if we haven't been mentioned.
David Woodhouse [Tue, 31 Mar 2020 21:24:17 +0000 (22:24 +0100)]
Don't fetch all rooms at startup if we haven't been mentioned.

This takes a huge amount of time for new clients.

5 years agoDon't specify organiser to generate_comp() at all.
David Woodhouse [Tue, 31 Mar 2020 19:54:23 +0000 (20:54 +0100)]
Don't specify organiser to generate_comp() at all.

It was using 'Calendar' for me, and resulting in a non-editable meeting.

Having carefully chosing the right calendar, we should be able to leave
it as NULL and let the default for the calendar be used.

5 years agoDo not try to get the attachment if the node is NULL
Ignacio Casal Quinteiro [Wed, 18 Mar 2020 15:51:12 +0000 (16:51 +0100)]
Do not try to get the attachment if the node is NULL

This fixes lots of warnings when trying to get the attachments

5 years agoAllow joinable meetings to be added
David Woodhouse [Mon, 16 Mar 2020 13:56:20 +0000 (13:56 +0000)]
Allow joinable meetings to be added

This paves the way for something that looks at the calendar and inserts
the meetings where the organiser forgot to invite meet@chime.aws, or
where distribution lists were invited instead of people, so Chime can't
pop up automatically.

5 years agoMerge branch 'fix_Evolution_email_mismatch' of https://github.com/dlenski/pidgin...
David Woodhouse [Mon, 9 Mar 2020 16:41:18 +0000 (16:41 +0000)]
Merge branch 'fix_Evolution_email_mismatch' of https://github.com/dlenski/pidgin-chime

5 years agoAdd End Meeting support
David Woodhouse [Mon, 9 Mar 2020 12:29:59 +0000 (12:29 +0000)]
Add End Meeting support

5 years agomodify Evolution plugin to ensure that a calendar event is always associated with...
Dan Lenski [Wed, 26 Feb 2020 20:15:24 +0000 (12:15 -0800)]
modify Evolution plugin to ensure that a calendar event is always associated with the email address of the source for that calendar

This addresses issue #44, wherein Evolution prevents the user from editing
the created meeting if the Chime username/address doesn't exactly match an
email address configured in Evolution.

5 years agoFix for attachment ignore problem
Ahmet Ipkin [Tue, 10 Dec 2019 22:03:36 +0000 (23:03 +0100)]
Fix for attachment ignore problem

5 years agoxcbimagesrc: disconnect xcb when clearing the context
Ignacio Casal Quinteiro [Thu, 28 Nov 2019 22:35:50 +0000 (23:35 +0100)]
xcbimagesrc: disconnect xcb when clearing the context

5 years agoxcbimagesrc: remove unused method
Ignacio Casal Quinteiro [Thu, 28 Nov 2019 22:28:32 +0000 (23:28 +0100)]
xcbimagesrc: remove unused method

5 years agoPrevent double-close of meetings when chat is closed.
David Woodhouse [Wed, 27 Nov 2019 13:44:53 +0000 (13:44 +0000)]
Prevent double-close of meetings when chat is closed.

5 years agoxcb: gather all the screen data using xcb_screen_t
Ignacio Casal Quinteiro [Wed, 27 Nov 2019 10:17:42 +0000 (11:17 +0100)]
xcb: gather all the screen data using xcb_screen_t

5 years agoFix 'Join with audio' on already-open meeting, ending audio closes chat
David Woodhouse [Tue, 26 Nov 2019 16:09:42 +0000 (16:09 +0000)]
Fix 'Join with audio' on already-open meeting, ending audio closes chat

5 years agoshm check
Ignacio Casal Quinteiro [Mon, 25 Nov 2019 22:15:25 +0000 (23:15 +0100)]
shm check

5 years agowip
Ignacio Casal Quinteiro [Mon, 25 Nov 2019 22:01:23 +0000 (23:01 +0100)]
wip

5 years agoAdd gst-xcbimagesrc to specfile
David Woodhouse [Mon, 25 Nov 2019 19:56:50 +0000 (19:56 +0000)]
Add gst-xcbimagesrc to specfile

5 years agoAdd xcbimagesrc for Nacho to port to XCB
David Woodhouse [Mon, 25 Nov 2019 17:33:54 +0000 (17:33 +0000)]
Add xcbimagesrc for Nacho to port to XCB

It's still just a copy of ximagesrc from gst-plugins-good, passed through sed.

5 years agoFix potential memory leak in screen_send_packet()
David Woodhouse [Fri, 22 Nov 2019 21:46:37 +0000 (21:46 +0000)]
Fix potential memory leak in screen_send_packet()

Not that we use it in that mode, because it sucks as noted even with
the leak fixed.

5 years agoNo really, only send screen if there's a viewer.
David Woodhouse [Fri, 22 Nov 2019 21:27:20 +0000 (21:27 +0000)]
No really, only send screen if there's a viewer.

5 years agoHandle unexpected closure of screen websocket
David Woodhouse [Fri, 22 Nov 2019 21:20:48 +0000 (21:20 +0000)]
Handle unexpected closure of screen websocket

I don't think this was a cause of dropouts because the reported behaviour
was a stall (no movement in the picture). And when the websocket drops,
the shared screen drops and other participants see that it's gone.

But we should handle it appropriately anyway. By visibly dropping and
reporting an error for now. If necessary we'll make it automatically
reconnect like the audio stream does.

5 years agoOnly send screen data when a viewer is actually present
David Woodhouse [Fri, 22 Nov 2019 21:19:50 +0000 (21:19 +0000)]
Only send screen data when a viewer is actually present

That is, when we see the first KEY_REQUEST.

5 years agoMerge branch 'master' of github.com:awslabs/pidgin-chime
David Woodhouse [Fri, 22 Nov 2019 21:10:16 +0000 (21:10 +0000)]
Merge branch 'master' of github.com:awslabs/pidgin-chime

5 years agoFix outbound screenshare dropouts
David Woodhouse [Fri, 22 Nov 2019 21:02:55 +0000 (21:02 +0000)]
Fix outbound screenshare dropouts

I think I've found the reason, along with the reason I could never
reproduce it on demand. The videorate element insists on producing
precisely one output frame for every third of the second... since the
epoch (when GStreamer started up). Not from the start of the call.

So if you've only been running Pidgin for a few seconds and you make
a test call, and it's the first GStreamer pipeline, it all works fine.

Hang up, wait an hour and then share another screen, and it'll send
10800 duplicate copies of the first frame before it ever sends anything
else.

5 years agoRevert "Reduce outbound screenshare bandwidth"
David Woodhouse [Fri, 22 Nov 2019 21:02:26 +0000 (21:02 +0000)]
Revert "Reduce outbound screenshare bandwidth"

This reverts commit c1d4c357b4ebda3c3d3faab9f2f21acdd385016b. It wasn't that.

5 years agochime-call-transport: use the right format type for size_t
Ignacio Casal Quinteiro [Fri, 22 Nov 2019 12:29:34 +0000 (13:29 +0100)]
chime-call-transport: use the right format type for size_t

5 years agoFix compiler warning in chime_connection_send_message_async()
David Woodhouse [Fri, 22 Nov 2019 12:24:44 +0000 (12:24 +0000)]
Fix compiler warning in chime_connection_send_message_async()

 (1) Event suspicious_sizeof: Passing argument "&message" of type
     "gchar const **" and argument "8L /* sizeof (gchar const **) */"
     to function "g_checksum_update" is suspicious. In this case,
     "sizeof (gchar const **)" is equal to "sizeof (gchar const *)",
     but this is not a portable assumption.
 (2) Event remediation: Did you intend to use "sizeof (gchar const *)"
     instead of "sizeof (gchar const **)"?

5 years agochime-connection: remove useless check
Ignacio Casal Quinteiro [Fri, 22 Nov 2019 11:43:40 +0000 (12:43 +0100)]
chime-connection: remove useless check

The server variable is checked right before and set to SIGNIN_DEFAULT
if needed.

5 years agochat: set error to the right purple media
Ignacio Casal Quinteiro [Fri, 22 Nov 2019 11:41:27 +0000 (12:41 +0100)]
chat: set error to the right purple media

5 years agoFix clang static analysis warnings
Ignacio Casal Quinteiro [Fri, 22 Nov 2019 11:32:13 +0000 (12:32 +0100)]
Fix clang static analysis warnings

Even though the code is ok better to deallocate the data
after it is removing it from the list, to avoid the warning
and to make the code clearer.

5 years agoReduce outbound screenshare bandwidth
David Woodhouse [Tue, 19 Nov 2019 15:01:35 +0000 (15:01 +0000)]
Reduce outbound screenshare bandwidth

I've been sharing my screen for an hour now, without any dropouts. Not
really sure if this is it; it's never really been reproducible on
demand when I've been trying to debug it anyway...

5 years agoFix use-after-free crash in message gathering
David Woodhouse [Tue, 19 Nov 2019 10:38:44 +0000 (10:38 +0000)]
Fix use-after-free crash in message gathering

When cleanup_msgs() is called, there may be a pending fetch. We were
seeing crashes when fetch_msgs_cb() ended up using the freed msgs
structure. Let cleanup_msgs() do the freeing instead of the caller
(since we already have this nasty hack that the msgs struct needs
to be at the start of the chat/im structure. And then defer the
final free() until fetch_msgs_cb() is called, if necessary.

5 years agoStop i386 builds failing
David Woodhouse [Mon, 18 Nov 2019 12:05:48 +0000 (12:05 +0000)]
Stop i386 builds failing

We don't care about them much, but the PPA builds for i386 and the failures
are gratuitous and annoying.

5 years agoSort room list and implement 'Leave Room'
David Woodhouse [Mon, 18 Nov 2019 11:43:14 +0000 (11:43 +0000)]
Sort room list and implement 'Leave Room'

We can't leave rooms from the room list display because Pidgin doesn't
let us add action buttons there, but we could do our own version as a
search results box, triggered from the account menu.

Also haven't implemented 'delete room' yet.

5 years agoTag version 1.3 v1.3
David Woodhouse [Fri, 8 Nov 2019 12:50:41 +0000 (12:50 +0000)]
Tag version 1.3

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
5 years agoAdd Do Not Disturb state
David Woodhouse [Fri, 8 Nov 2019 12:48:24 +0000 (12:48 +0000)]
Add Do Not Disturb state

Also fix chime_availability_name() not to crash when it sees a new state
value that isn't in its list.

5 years agochat: do not crash if clicking IM without selecting a contact
Ignacio Casal Quinteiro [Wed, 6 Nov 2019 14:15:09 +0000 (15:15 +0100)]
chat: do not crash if clicking IM without selecting a contact

6 years agoTag version 1.2 v1.2
David Woodhouse [Wed, 22 May 2019 05:59:30 +0000 (06:59 +0100)]
Tag version 1.2

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
6 years agoFix dist files to include README.md not README
David Woodhouse [Wed, 22 May 2019 05:37:59 +0000 (22:37 -0700)]
Fix dist files to include README.md not README

6 years agoDrop libecal-1.2 BR for specfile
David Woodhouse [Tue, 21 May 2019 17:03:22 +0000 (10:03 -0700)]
Drop libecal-1.2 BR for specfile

It's not clear why we have to change the actual pkgconfig module name
instead of just the version. But any attempt to BR one or the other
would be fairly distro-specific anyway, based on %_fedora. So we might
as well just *not* BR it, and depend on the equally distro-specific
knowledge that it's in the evolution-data-server-devel package along
with all the other things that we *do* BR.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
6 years agoAttempt to drop only whole frames, not arbitary gaps.
David Woodhouse [Tue, 7 May 2019 15:40:17 +0000 (16:40 +0100)]
Attempt to drop only whole frames, not arbitary gaps.

Perhaps this stops the strange effects we get when we lose outbound
audio frames on a busy system and something goes out of sync.

6 years agoUpdate ecal-2.0 port for further upstream API changes
Milan Crha [Tue, 7 May 2019 09:49:30 +0000 (10:49 +0100)]
Update ecal-2.0 port for further upstream API changes

6 years agoMerge pull request #38 from jtojnar/libecal-2.0
David Woodhouse [Wed, 24 Apr 2019 14:25:32 +0000 (15:25 +0100)]
Merge pull request #38 from jtojnar/libecal-2.0

Port to libecal-2.0

6 years agoPort to libecal-2.0
Milan Crha [Wed, 24 Apr 2019 13:39:45 +0000 (15:39 +0200)]
Port to libecal-2.0

https://gitlab.gnome.org/GNOME/evolution-data-server/issues/33

6 years agoAnother quickfix to the WarpDrive login.
Isaac Jurado [Tue, 11 Dec 2018 11:01:58 +0000 (12:01 +0100)]
Another quickfix to the WarpDrive login.

6 years agoUpdate user search to use Express API
David Woodhouse [Tue, 4 Dec 2018 10:22:08 +0000 (10:22 +0000)]
Update user search to use Express API

Hm, how are we supposed to find it?

6 years agoFix g_error_free criticals
David Woodhouse [Tue, 4 Dec 2018 09:11:40 +0000 (09:11 +0000)]
Fix g_error_free criticals

6 years agoMerge pull request #34 from etanol/master
Isaac Jurado [Mon, 3 Dec 2018 22:31:38 +0000 (23:31 +0100)]
Merge pull request #34 from etanol/master

Quickfix to update WarpDrive sign in.

6 years agoQuickfix to update WarpDrive sign in.
Isaac Jurado [Mon, 3 Dec 2018 22:24:07 +0000 (23:24 +0100)]
Quickfix to update WarpDrive sign in.

7 years agoFix RPM build
David Woodhouse [Mon, 24 Sep 2018 08:54:10 +0000 (09:54 +0100)]
Fix RPM build

7 years agoFix C89 build failure on Fedora 28
David Woodhouse [Mon, 24 Sep 2018 08:51:09 +0000 (09:51 +0100)]
Fix C89 build failure on Fedora 28

BUILDSTDERR: prpl/attachments.c: In function 'get_mime_type':
BUILDSTDERR: prpl/attachments.c:523:3: error: 'for' loop initial declarations are only allowed in C99 mode
BUILDSTDERR:    for (int i = 0; i < sizeof(file_types) / sizeof(struct FileType); i++) {
BUILDSTDERR:    ^
BUILDSTDERR: prpl/attachments.c:523:3: note: use option -std=c99 or -std=gnu99 to compile your code

7 years agoTranslate the README file to README.md
Isaac Jurado [Mon, 24 Sep 2018 07:49:56 +0000 (09:49 +0200)]
Translate the README file to README.md

Now that we are on GitHub, provide a more appealing README file by translating
the current one to Markdown.

7 years agoMerge pull request #30 from etanol/master
Isaac Jurado [Wed, 12 Sep 2018 20:14:29 +0000 (22:14 +0200)]
Merge pull request #30 from etanol/master

Update WarpDrive authentication.

7 years agoUpdate WarpDrive authentication.
Isaac Jurado [Wed, 12 Sep 2018 20:05:01 +0000 (22:05 +0200)]
Update WarpDrive authentication.

Bring the WD authentication scrapping up to date with the current web version.
The JS file used to extract the GWT policy ID no longer exists.  Also, use newer
versions of the GWT request structures.

7 years agoMerge branch 'master' of github.com:awslabs/pidgin-chime
David Woodhouse [Wed, 5 Sep 2018 06:51:08 +0000 (07:51 +0100)]
Merge branch 'master' of github.com:awslabs/pidgin-chime

7 years agoMerge pull request #29 from michaelgataws/typing-notifications
David Woodhouse [Wed, 5 Sep 2018 06:50:59 +0000 (07:50 +0100)]
Merge pull request #29 from michaelgataws/typing-notifications

Hide own typing notifications

7 years agoHide own typing notifications
Michael Gruenewald [Mon, 27 Aug 2018 15:04:53 +0000 (17:04 +0200)]
Hide own typing notifications

Own typing notifications (which may appear from other devices) shouldn't
end up in a bogus conversation with oneself.

7 years agoChange gnutls dep to libgnutls28-dev, working around Ubuntu strangeness
David Woodhouse [Mon, 9 Jul 2018 15:23:02 +0000 (16:23 +0100)]
Change gnutls dep to libgnutls28-dev, working around Ubuntu strangeness

7 years agoMerge pull request #22 from gqmelo/attachment-upload
Guilherme Quentel Melo [Wed, 13 Jun 2018 16:11:31 +0000 (18:11 +0200)]
Merge pull request #22 from gqmelo/attachment-upload

Add support to send attachment on a conversation

7 years agoTag version 1.1 v1.1
David Woodhouse [Fri, 25 May 2018 07:24:29 +0000 (08:24 +0100)]
Tag version 1.1

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
7 years agoAdd support to send attachment on a conversation
Guilherme Melo [Sat, 16 Dec 2017 19:20:53 +0000 (21:20 +0200)]
Add support to send attachment on a conversation

An attachment can be sent on Pidgin through Send File dialog.
This also supports showing progress and cancelling the transfer.

Currently it works with conversations only (no chat), as the file
transfer callbacks offered by PurplePluginProtocolInfo are not used for
chats.

7 years agoMerge pull request #26 from etanol/master
David Woodhouse [Fri, 18 May 2018 05:49:02 +0000 (06:49 +0100)]
Merge pull request #26 from etanol/master

The arms race continues

7 years agoUpdate sign-in code to match the latest website updates.
Isaac Jurado [Thu, 17 May 2018 23:22:48 +0000 (01:22 +0200)]
Update sign-in code to match the latest website updates.

7 years agoExplicitly require and link camel-1.2
David Woodhouse [Wed, 16 May 2018 06:43:25 +0000 (08:43 +0200)]
Explicitly require and link camel-1.2

https://github.com/awslabs/pidgin-chime/issues/23

Reported-by: Buchan Milne <bgmilne@gmail.com>
7 years agoHandled "none required" in $ac_search_cv_dlopen on non-Linux
Buchan Milne [Tue, 15 May 2018 19:15:57 +0000 (21:15 +0200)]
Handled "none required" in $ac_search_cv_dlopen on non-Linux

7 years agoDetect library containing dlopen/dlsym #23
Buchan Milne [Mon, 14 May 2018 15:52:41 +0000 (17:52 +0200)]
Detect library containing dlopen/dlsym #23

7 years agoAdd missing libraries to underlinked targes #23
Buchan Milne [Mon, 14 May 2018 15:04:33 +0000 (17:04 +0200)]
Add missing libraries to underlinked targes #23

* libapp-transmitter.la needs $(FARSTREAM_LIBS)
* libchimeprpl.la needs -ldl

7 years agoTag version 1.0 v1.0
David Woodhouse [Mon, 7 May 2018 17:52:44 +0000 (18:52 +0100)]
Tag version 1.0

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
7 years agoRevert "Do not BR gcc"
David Woodhouse [Sun, 6 May 2018 19:09:54 +0000 (20:09 +0100)]
Revert "Do not BR gcc"

This reverts commit ed8cd436991c6a20715a73cefa814a17f964673d. Turns out it
is needed after all, and fedora-review is out of date.

7 years agoFix .deb changelog generation for tagged versions
David Woodhouse [Sun, 6 May 2018 09:08:20 +0000 (10:08 +0100)]
Fix .deb changelog generation for tagged versions

7 years agoTag version 0.95 v0.95
David Woodhouse [Sun, 6 May 2018 08:28:14 +0000 (09:28 +0100)]
Tag version 0.95

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
7 years agoMore Fedora review fixes
David Woodhouse [Sun, 6 May 2018 08:26:37 +0000 (09:26 +0100)]
More Fedora review fixes

7 years agoReduce Pidgin dep to 2.13.0
David Woodhouse [Sat, 5 May 2018 11:44:53 +0000 (12:44 +0100)]
Reduce Pidgin dep to 2.13.0

7 years agoSupport screen share when built against older libpurple
David Woodhouse [Sat, 5 May 2018 11:39:32 +0000 (12:39 +0100)]
Support screen share when built against older libpurple

We can use dlsym() to get at purple_request_screenshare_media(), and now
we can have full functionality even when built against Pidgin 2.13.0 and
only *running* with 2.14.0.

This means the real Fedora build (once it's reviewed) won't be less
functional than the COPR build from the same source.

7 years agoSupport .get_cb_alias even when built against older libpurple
David Woodhouse [Sat, 5 May 2018 11:14:12 +0000 (12:14 +0100)]
Support .get_cb_alias even when built against older libpurple

It's harmless to extend the PRPL struct and provide the feature bits as
they'll be ignored. So just do it and don't make the newer libpurple a
build dependency.

7 years agomedia cleanup
David Woodhouse [Fri, 4 May 2018 22:23:19 +0000 (23:23 +0100)]
media cleanup

7 years agoTag version 0.94 v0.94
David Woodhouse [Fri, 4 May 2018 15:51:48 +0000 (16:51 +0100)]
Tag version 0.94

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
7 years agoComplete the removal of 24/32 pixmaps
David Woodhouse [Fri, 4 May 2018 15:49:59 +0000 (16:49 +0100)]
Complete the removal of 24/32 pixmaps

7 years agoTag version 0.93 v0.93
David Woodhouse [Fri, 4 May 2018 15:39:05 +0000 (16:39 +0100)]
Tag version 0.93

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
7 years agoAlways require autohate for COPR builds
David Woodhouse [Fri, 4 May 2018 15:38:54 +0000 (16:38 +0100)]
Always require autohate for COPR builds

7 years agoTag version 0.92 v0.92
David Woodhouse [Fri, 4 May 2018 15:24:55 +0000 (16:24 +0100)]
Tag version 0.92

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
7 years agoImport tag/dist bits from openconnect
David Woodhouse [Fri, 4 May 2018 15:22:42 +0000 (16:22 +0100)]
Import tag/dist bits from openconnect

7 years agoDo not BR gcc
David Woodhouse [Fri, 4 May 2018 15:17:13 +0000 (16:17 +0100)]
Do not BR gcc

7 years agoOwn /etc/pki/purple-chime
David Woodhouse [Fri, 4 May 2018 15:16:02 +0000 (16:16 +0100)]
Own /etc/pki/purple-chime

7 years agoRemove 24x24 and 32x32 pixmaps which Pidgin doesn't use
David Woodhouse [Fri, 4 May 2018 15:14:58 +0000 (16:14 +0100)]
Remove 24x24 and 32x32 pixmaps which Pidgin doesn't use

7 years agov0.91 v0.91
David Woodhouse [Fri, 4 May 2018 13:39:24 +0000 (14:39 +0100)]
v0.91

7 years agoFix EPEL compat harder
David Woodhouse [Fri, 4 May 2018 14:13:35 +0000 (15:13 +0100)]
Fix EPEL compat harder

7 years agoAdd certs to dist
David Woodhouse [Fri, 4 May 2018 14:12:25 +0000 (15:12 +0100)]
Add certs to dist

7 years agoFix COPR build
David Woodhouse [Fri, 4 May 2018 13:49:39 +0000 (14:49 +0100)]
Fix COPR build

7 years agoAllow certs to be put elsewhere
David Woodhouse [Fri, 4 May 2018 13:35:07 +0000 (14:35 +0100)]
Allow certs to be put elsewhere

7 years agoClean up spec generation.
David Woodhouse [Fri, 4 May 2018 12:58:18 +0000 (13:58 +0100)]
Clean up spec generation.

Do it at autogen.sh and 'make dist' time, not during configure.
Do it with a shell script and simplify .copr/Makefile

7 years agoMake DTLS cert verification work on EPEL7
David Woodhouse [Fri, 4 May 2018 12:27:25 +0000 (13:27 +0100)]
Make DTLS cert verification work on EPEL7

7 years agoTrust Amazon certificates
David Woodhouse [Fri, 4 May 2018 11:30:22 +0000 (12:30 +0100)]
Trust Amazon certificates

Some of the media endpoints have certificates issued by the Amazon internal
CA. Trust them. Might as well have the Amazon public trust roots too, just
for good measure.

7 years agoDisplay which account we're authenticating to in prompts
David Woodhouse [Tue, 1 May 2018 21:52:44 +0000 (22:52 +0100)]
Display which account we're authenticating to in prompts

7 years agoDon't soup_uri_free(NULL)
David Woodhouse [Tue, 1 May 2018 21:52:30 +0000 (22:52 +0100)]
Don't soup_uri_free(NULL)

7 years agoDo not automatically connect upon object construction.
Isaac Jurado [Tue, 1 May 2018 14:50:37 +0000 (16:50 +0200)]
Do not automatically connect upon object construction.

chime_connection_new() automatically calls chime_connection_connect(), but if
the session token is not given, there hasn't been any chance to connect the
"authenticate" signal in order to properly transfer control through the code.

Instead of implicitly connecting upon object creation, let the caller do it
explicitly.  The purple plugin is also changed to conform to that.

7 years agoRemove PurpleConnection from ChimeConnection.
Isaac Jurado [Tue, 1 May 2018 11:08:29 +0000 (13:08 +0200)]
Remove PurpleConnection from ChimeConnection.

This commit efectively completes the decoupling of libpurple specific glue code
from the self contained Chime client code.  Fixes #2.

7 years agoRefactor the login/sign-in code.
Isaac Jurado [Tue, 1 May 2018 11:02:17 +0000 (13:02 +0200)]
Refactor the login/sign-in code.

To conform with the backend/frontend split of this package, the sign in code has
been refactored by separtaing the screen scrapping parts from the front
end (user interaction) parts.

The split between sign in provider types is no more, so all the login dirty code
lives together in chime/chime-signin.c.

Also, a new utility (chime-get-token) has been incorporated to ease the debug of
the sign in process, and also as an easy way to obtain a session token for Chime
bot developers.

7 years agoValidate DTLS server certificate
David Woodhouse [Tue, 1 May 2018 08:50:50 +0000 (09:50 +0100)]
Validate DTLS server certificate

Hm, it really shouldn't be so easy to forget this. There really is a case
to be made that you should get GNUTLS_E_CERTIFICATE_VERIFICATION_ERROR by
default *unless* you set up verification. Fail safe, not open.