Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
domain.h File Reference
#include <stdio.h>
#include "url.h"
Include dependency graph for domain.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void a_Domain_parse (FILE *fp)
 Parse domainrc.
 
void a_Domain_freeall (void)
 
bool_t a_Domain_permit (const DilloUrl *source, const DilloUrl *dest)
 Is the resource at 'source' permitted to request the resource at 'dest'?
 

Function Documentation

◆ a_Domain_freeall()

void a_Domain_freeall ( void  )

Definition at line 79 of file domain.c.

References dFree(), exceptions, and num_exceptions.

Referenced by main().

◆ a_Domain_parse()

void a_Domain_parse ( FILE *  fp)

Parse domainrc.

Definition at line 31 of file domain.c.

References _MSG, a_List_add, default_deny, dFree(), dGetline(), dStrAsciiCasecmp(), dStrdup(), dStrstrip(), exceptions, FALSE, MSG, num_exceptions, num_exceptions_max, and TRUE.

Referenced by main().

◆ a_Domain_permit()

bool_t a_Domain_permit ( const DilloUrl source,
const DilloUrl dest 
)

Is the resource at 'source' permitted to request the resource at 'dest'?

Definition at line 116 of file domain.c.

References _MSG, a_Url_same_organization(), default_deny, Domain_match(), dStrAsciiCasecmp(), exceptions, FALSE, MSG, num_exceptions, TRUE, URL_HOST, URL_SCHEME, and URL_STR.

Referenced by Cache_parse_header(), and Capi_request_permitted().