GNOME Bugzilla – Bug 711230
rtspsrc: allow setting certificate validation flags
Last modified: 2013-11-01 15:48:21 UTC
Currently, rtspsrc can only connect to an rtsps server if the server provides a certificate that validates correctly all GTlsCertificateFlags. It would be nice if it was possible to provide the validation flags with a property.
Created attachment 258690 [details] [review] tls-validation-flags property
Review of attachment 258690 [details] [review]: Generally looks good ::: gst/rtsp/gstrtspsrc.c @@ +187,3 @@ #define DEFAULT_NTP_SYNC FALSE #define DEFAULT_USE_PIPELINE_CLOCK FALSE +#define DEFAULT_TLS_VALIDATION_FLAGS G_TLS_CERTIFICATE_VALIDATE_ALL Isn't the default to validate nothing currently? Changing the default could break things @@ +591,3 @@ + * certificate. + * + * Since: 1.2.1 Since: 1.4.0 probably
(In reply to comment #2) > Review of attachment 258690 [details] [review]: > > Generally looks good > > ::: gst/rtsp/gstrtspsrc.c > @@ +187,3 @@ > #define DEFAULT_NTP_SYNC FALSE > #define DEFAULT_USE_PIPELINE_CLOCK FALSE > +#define DEFAULT_TLS_VALIDATION_FLAGS G_TLS_CERTIFICATE_VALIDATE_ALL > > Isn't the default to validate nothing currently? Changing the default could > break things > The default in g_socket_client is G_TLS_CERTIFICATE_VALIDATE_ALL. Actually, this is why I had to add this. https://developer.gnome.org/gio/2.32/GSocketClient.html#GSocketClient--tls-validation-flags I'm using 2.38, but it's the same. > @@ +591,3 @@ > + * certificate. > + * > + * Since: 1.2.1 > > Since: 1.4.0 probably I can send a new patch for this, if you want. Oh, and thanks for the two reviews!
Yes, make it Since: 1.2.1 please :)
(In reply to comment #4) > Yes, make it Since: 1.2.1 please :) Great, then I think this one is already fine.
commit 82b8374af8f642ea7a336ba3ce05b2900dc922e9 Author: Aleix Conchillo Flaque <aleix@oblong.com> Date: Thu Oct 31 14:05:43 2013 -0700 rtspsrc: allow setting tls certificate validation flags Added a new property "tls-validation-flags". If the url transport is TLS, the validation flags will be set to the rtsp connection. https://bugzilla.gnome.org/show_bug.cgi?id=711230