MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / validate_acl

Function validate_acl

ffserver.c:1396–1414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1394}
1395
1396static int validate_acl(FFStream *stream, HTTPContext *c)
1397{
1398 int ret = 0;
1399 IPAddressACL *acl;
1400
1401
1402 /* if stream->acl is null validate_acl_list will return 1 */
1403 ret = validate_acl_list(stream->acl, c);
1404
1405 if (stream->dynamic_acl[0]) {
1406 acl = parse_dynamic_acl(stream, c);
1407
1408 ret = validate_acl_list(acl, c);
1409
1410 free_acl_list(acl);
1411 }
1412
1413 return ret;
1414}
1415
1416/* compute the real filename of a file by matching it without its
1417 extensions to all the stream filenames */

Callers 1

http_parse_requestFunction · 0.85

Calls 3

validate_acl_listFunction · 0.85
parse_dynamic_aclFunction · 0.85
free_acl_listFunction · 0.85

Tested by

no test coverage detected