![]() |
![]() |
![]() |
GStreamer RTSP Server Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
struct GstRTSPAuth; struct GstRTSPAuthClass; GstRTSPAuth * gst_rtsp_auth_new (void
); void gst_rtsp_auth_set_basic (GstRTSPAuth *auth
,const gchar *basic
); gboolean gst_rtsp_auth_setup_auth (GstRTSPAuth *auth
,GstRTSPClient *client
,GQuark hint
,GstRTSPClientState *state
); gboolean gst_rtsp_auth_check_method (GstRTSPAuth *auth
,GstRTSPClient *client
,GQuark hint
,GstRTSPClientState *state
); gchar * gst_rtsp_auth_make_basic (const gchar *user
,const gchar *pass
);
struct GstRTSPAuthClass { GObjectClass parent_class; gboolean (*setup_auth) (GstRTSPAuth *auth, GstRTSPClient * client, GQuark hint, GstRTSPClientState *state); gboolean (*check_method) (GstRTSPAuth *auth, GstRTSPClient * client, GQuark hint, GstRTSPClientState *state); };
GstRTSPAuth * gst_rtsp_auth_new (void
);
Create a new GstRTSPAuth instance.
Returns : |
a new GstRTSPAuth |
void gst_rtsp_auth_set_basic (GstRTSPAuth *auth
,const gchar *basic
);
Set the basic token for the default authentication algorithm.
|
a GstRTSPAuth |
|
the basic token |
gboolean gst_rtsp_auth_setup_auth (GstRTSPAuth *auth
,GstRTSPClient *client
,GQuark hint
,GstRTSPClientState *state
);
Add authentication tokens to response
.
|
a GstRTSPAuth |
|
the client |
|
the requested uri |
|
the session |
|
the request |
|
the response |
Returns : |
FALSE if something is wrong. |
gboolean gst_rtsp_auth_check_method (GstRTSPAuth *auth
,GstRTSPClient *client
,GQuark hint
,GstRTSPClientState *state
);
Check if client
is allowed to perform the actions of state
.
|
a GstRTSPAuth |
|
the client |
|
a hint |
|
client state |
Returns : |
FALSE if the action is not allowed. |