GstRTSPAuth

GstRTSPAuth

Functions

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GstRTSPAuth

Description

Functions

gst_rtsp_auth_new ()

GstRTSPAuth *
gst_rtsp_auth_new (void);

gst_rtsp_auth_get_tls_certificate ()

GTlsCertificate *
gst_rtsp_auth_get_tls_certificate (GstRTSPAuth *auth);

gst_rtsp_auth_set_tls_certificate ()

void
gst_rtsp_auth_set_tls_certificate (GstRTSPAuth *auth,
                                   GTlsCertificate *cert);

gst_rtsp_auth_get_tls_database ()

GTlsDatabase *
gst_rtsp_auth_get_tls_database (GstRTSPAuth *auth);

gst_rtsp_auth_set_tls_database ()

void
gst_rtsp_auth_set_tls_database (GstRTSPAuth *auth,
                                GTlsDatabase *database);

gst_rtsp_auth_get_tls_authentication_mode ()

GTlsAuthenticationMode
gst_rtsp_auth_get_tls_authentication_mode
                               (GstRTSPAuth *auth);

gst_rtsp_auth_set_tls_authentication_mode ()

void
gst_rtsp_auth_set_tls_authentication_mode
                               (GstRTSPAuth *auth,
                                GTlsAuthenticationMode mode);

gst_rtsp_auth_make_basic ()

gchar *
gst_rtsp_auth_make_basic (const gchar *user,
                          const gchar *pass);

gst_rtsp_auth_add_basic ()

void
gst_rtsp_auth_add_basic (GstRTSPAuth *auth,
                         const gchar *basic,
                         GstRTSPToken *token);

gst_rtsp_auth_remove_basic ()

void
gst_rtsp_auth_remove_basic (GstRTSPAuth *auth,
                            const gchar *basic);

gst_rtsp_auth_check ()

gboolean
gst_rtsp_auth_check (const gchar *check);

gst_rtsp_auth_get_default_token ()

GstRTSPToken *
gst_rtsp_auth_get_default_token (GstRTSPAuth *auth);

gst_rtsp_auth_set_default_token ()

void
gst_rtsp_auth_set_default_token (GstRTSPAuth *auth,
                                 GstRTSPToken *token);

Types and Values

struct GstRTSPAuth

struct GstRTSPAuth;

struct GstRTSPAuthClass

struct GstRTSPAuthClass {
  GObjectClass  parent_class;

  gboolean           (*authenticate) (GstRTSPAuth *auth, GstRTSPContext *ctx);
  gboolean           (*check)        (GstRTSPAuth *auth, GstRTSPContext *ctx,
                                      const gchar *check);
  gboolean           (*accept_certificate) (GstRTSPAuth *auth,
                                            GTlsConnection *connection,
                                            GTlsCertificate *peer_cert,
                                            GTlsCertificateFlags errors);
};

GST_RTSP_AUTH_CHECK_CONNECT

#define GST_RTSP_AUTH_CHECK_CONNECT                  "auth.check.connect"

GST_RTSP_AUTH_CHECK_URL

#define GST_RTSP_AUTH_CHECK_URL                      "auth.check.url"

GST_RTSP_AUTH_CHECK_MEDIA_FACTORY_ACCESS

#define GST_RTSP_AUTH_CHECK_MEDIA_FACTORY_ACCESS     "auth.check.media.factory.access"

GST_RTSP_AUTH_CHECK_MEDIA_FACTORY_CONSTRUCT

#define GST_RTSP_AUTH_CHECK_MEDIA_FACTORY_CONSTRUCT  "auth.check.media.factory.construct"

GST_RTSP_AUTH_CHECK_TRANSPORT_CLIENT_SETTINGS

#define GST_RTSP_AUTH_CHECK_TRANSPORT_CLIENT_SETTINGS  "auth.check.transport.client-settings"

GST_RTSP_TOKEN_MEDIA_FACTORY_ROLE

#define GST_RTSP_TOKEN_MEDIA_FACTORY_ROLE      "media.factory.role"

GST_RTSP_TOKEN_TRANSPORT_CLIENT_SETTINGS

#define GST_RTSP_TOKEN_TRANSPORT_CLIENT_SETTINGS   "transport.client-settings"

GST_RTSP_PERM_MEDIA_FACTORY_ACCESS

#define GST_RTSP_PERM_MEDIA_FACTORY_ACCESS      "media.factory.access"

GST_RTSP_PERM_MEDIA_FACTORY_CONSTRUCT

#define GST_RTSP_PERM_MEDIA_FACTORY_CONSTRUCT   "media.factory.construct"

Signal Details

The “accept-certificate” signal

gboolean
user_function (GstRTSPAuth         *gstrtspauth,
               GTlsConnection      *arg1,
               GTlsCertificate     *arg2,
               GTlsCertificateFlags arg3,
               gpointer             user_data)

Flags: Run Last