Add access control to RTSP server

This commit is contained in:
Andreas Öman 2009-11-18 20:43:52 +00:00
parent b8b8b3e5b1
commit c23296eb1d

View file

@ -1013,7 +1013,7 @@ int
rtsp_process_request(http_connection_t *hc)
{
int r;
if(0 /* rtsp_access_list(hc) */) {
if(http_access_verify(hc, ACCESS_STREAMING)) {
rtsp_error(hc, RTSP_STATUS_UNAUTHORIZED, NULL);
r = 0;
} else {
@ -1021,8 +1021,6 @@ rtsp_process_request(http_connection_t *hc)
switch(hc->hc_cmd) {
default:
printf("COMMAND: %d\n", hc->hc_cmd);
rtsp_error(hc, RTSP_STATUS_METHOD, NULL);
r = 0;
break;