ELinks 0.16.1.1
match-hostname-test.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "elinks.h"
#include "network/ssl/match-hostname.h"
#include "util/string.h"
Include dependency graph for match-hostname-test.c:

Data Structures

struct  match_hostname_pattern_test_case

Functions

int get_ctl_handle ()
char * gettext (const char *text)
int os_default_charset (void)
int main (void)

Variables

static const struct match_hostname_pattern_test_case match_hostname_pattern_test_cases []

Function Documentation

◆ get_ctl_handle()

int get_ctl_handle ( void )

◆ gettext()

char * gettext ( const char * text)

◆ main()

int main ( void )

◆ os_default_charset()

int os_default_charset ( void )

Variable Documentation

◆ match_hostname_pattern_test_cases

const struct match_hostname_pattern_test_case match_hostname_pattern_test_cases[]
static
Initial value:
= {
{ "*r*.example.org", "random.example.org", 1 },
{ "*r*.example.org", "history.example.org", 1 },
{ "*r*.example.org", "frozen.fruit.example.org", 0 },
{ "*r*.example.org", "steamed.fruit.example.org", 0 },
{ "ABC.def.Ghi", "abc.DEF.gHI", 1 },
{ "*", "localhost", 1 },
{ "*", "example.org", 0 },
{ "*.*", "example.org", 1 },
{ "*.*.*", "www.example.org", 1 },
{ "*.*.*", "example.org", 0 },
{ "assign", "assignee", 0 },
{ "*peg", "arpeggiator", 0 },
{ "*peg*", "arpeggiator", 1 },
{ "*r*gi*", "arpeggiator", 1 },
{ "*r*git*", "arpeggiator", 0 },
{ NULL, NULL, 0 }
}
#define NULL
Definition explodename.c:35