New TLS support in libshout

Philipp Schafft <[email protected]>
Newsgroups gmane.comp.audio.icecast.devel
Organization PH2
Message-ID <[email protected]>
flum,

I just merged my experimental TLS support into libshout master. I would
love to see some testing on this before next release of libshout so we
can fix bugs that may still be in the code.

New TLS support requires OpenSSL to be enabled at compile time. It
supports both RFC2818 ('classical' mode with a TLS socket) and RFC2817
('Upgrade:' mode with just a HTTP socket and STARTTLS like operation).

Using the new TLS support is easy:
There is a auto detection. So if you try to connect to an TLS enabled
server by just setting hostname and port correctly that will just work.
Also if you run up to date Icecast you can connect to a non-TLS port and
if TLS is enabled at the server the RFC2817 mode is used.
You can also manually select a mode by using shout_set_tls().
There is also shout_set_ca_directory() and shout_set_ca_certificate() to
pass CA certs to libshout. Defaults to default cert store
(e.g. /etc/ssl/).

In addition we added support to set a client certificate using
shout_set_client_certificate(). This may become more useful later as
there is currently no handling of this in Icecast (but there are plans
to add that).

To set a list of allowed ciphers we added shout_set_allowed_ciphers().
However libshout will be released with a sane default and normally there
is no need to. If you do you MUST expose this setting to the user as
otherwise you may harm security. If unsure ignore this function!

Please note that this is a request for testing. API and ABI may still
change slightly before release!

I would love to get some input and bug reports. I believe this is a huge
step forward for libshout (also those internals we changed that will
also help us to do other stuff that is on our TODO list).

Getting libshout: https://wiki.xiph.org/Icecast/Git_workflow
Ticket: https://trac.xiph.org/ticket/2152

-- 
Philipp.
 (Rah of PH2)

_______________________________________________
Icecast-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/icecast-dev
signature.asc (application/pgp-signature, 490 B)
-----BEGIN PGP SIGNATURE-----
Comment: Because it's your freedom

iQEcBAABAgAGBQJU1KXxAAoJEAAfMmx/9hlkQVkIAJFdVI5S+zxb3KIzIG+Mc6l1
mHVPy+2hy4PPGs8vrCi6P3WriFBBMnYNMSMXU1t9yyMHNJzY+vlrnNWlyyYCKwOm
2sgn7JxrKCptbpZjUr7BZBEZwwh/r2bEeNy44kwr8Ro+Q834h5JDaQ7taVmlrr3l
ZnynCbJpRcjp5MOWCmXdagTrW5sREl/cu2kIE3JDv7MmgW9u51gPJE0M0L2Tpne5
1s/kk6TEX44Ojsy0S4Spvi+Ok473bJhMVREOSKfU4xT2K2ijrlwYo/48mZAsm07m
heGuk2hiu1bq0AVnJcnHVCk/f+sLCsD212ImZRaeyLe1flBYCMEdKfk7jtfApyg=
=vz1n
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.