Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836130 - net-libs/c-client fails to connect to TLS>1.0 servers (affecting net-misc/asterisk)
Summary: net-libs/c-client fails to connect to TLS>1.0 servers (affecting net-misc/ast...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Keywords: PATCH
Depends on:
Reported: 2022-03-26 05:26 UTC by Sergey Okhapkin
Modified: 2022-03-26 13:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

patch (tls_version.diff,886 bytes, patch)
2022-03-26 05:27 UTC, Sergey Okhapkin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Okhapkin 2022-03-26 05:26:05 UTC
net-libs/c-client fails to connect to servers (or accept connection from) which require TLS version > 1.0

Reproducible: Always

Steps to Reproduce:
1. net-misc/asterisk with imap voicemail storage fails to connect to dovecot 2.3.18 imap server because dovecot's default setting is ssl_min_protocol = TLSv1.2 now.

net-libs/c-client-2007f patch attached.
Comment 1 Sergey Okhapkin 2022-03-26 05:27:32 UTC
Created attachment 767820 [details, diff]
Comment 2 Jaco Kroon 2022-03-26 07:13:05 UTC
Happy to onboard this, but I don't use this myself.  A few notes however:

1.  net-libs/c-client is the only provider for virtual/imap-c-client
2.  HOMEPAGE no longer seems correct.
3.  SRC_URI points to non-existent server.

Are there alternatives out there that is up to date?  asterisk has two alternative include paths for imap/* vs c-client/* or simply with no leading path, the problem is I suspect they're just different locations for the same headers.

Looks like this package comes from 2007!  If asterisk still depends on this, and upstream is completely gone (which it looks like), that's a highly problematic situation.  In the meantime I think we need to:

1.  Ensure that we don't lose this from the mirrors.
2.  Apply the patch.

@Sam - is there a sensible way to mark HOMEPAGE and SRC_URI as "dead upstream", or do I put a copy of these files on my infrastructure nad point SRC_URI there (ideally with some page somewhere)?  Alterantively I can put this last copy on github, import patches there and tag a new version?  But what I know of IMAP internals is scary to say the least, definitely not the right person for working on the code (not to mention time is a luxury of which I have too little at the moment).
Comment 3 Sergey Okhapkin 2022-03-26 13:44:08 UTC
Asterisk is not the only c-client consumer. PHP wants it too to build imap extension.