97 |
int type; |
int type; |
98 |
int family; |
int family; |
99 |
int ssl; |
int ssl; |
100 |
|
int sslversion; |
101 |
char *request; |
char *request; |
102 |
char *pathname; |
char *pathname; |
103 |
char *certmd5; |
char *certmd5; |
137 |
static struct IHavePrecedence ihp= {FALSE, FALSE, FALSE}; |
static struct IHavePrecedence ihp= {FALSE, FALSE, FALSE}; |
138 |
static struct MailFilter mtf= {NULL, NULL, NULL, FALSE, FALSE, FALSE, |
static struct MailFilter mtf= {NULL, NULL, NULL, FALSE, FALSE, FALSE, |
139 |
FALSE, FALSE, FALSE}; |
FALSE, FALSE, FALSE}; |
140 |
static struct PortSet portset= {-1, NULL, 0, SOCK_STREAM, AF_INET, FALSE, |
static struct PortSet portset= {-1, NULL, 0, SOCK_STREAM, AF_INET, FALSE, |
141 |
NULL, NULL, NULL, NULL}; |
SSL_VERSION_AUTO, NULL, NULL, NULL, NULL}; |
142 |
static struct ResourceSet resourceset= {0, 0, OPERATOR_EQUAL, 1, |
static struct ResourceSet resourceset= {0, 0, OPERATOR_EQUAL, 1, |
143 |
ACTION_ALERT}; |
ACTION_ALERT}; |
144 |
static struct TimestampSet timestampset= {NULL, OPERATOR_EQUAL, 0, |
static struct TimestampSet timestampset= {NULL, OPERATOR_EQUAL, 0, |
200 |
%token AUTOSTART MODE ACTIVE PASSIVE MANUAL |
%token AUTOSTART MODE ACTIVE PASSIVE MANUAL |
201 |
%token GROUP REQUEST DEPENDS |
%token GROUP REQUEST DEPENDS |
202 |
%token TIMESTAMP SECOND MINUTE HOUR DAY |
%token TIMESTAMP SECOND MINUTE HOUR DAY |
203 |
|
%token SSLAUTO SSLV2 SSLV3 TLSV1 |
204 |
|
|
205 |
%left GREATER LESS EQUAL NOTEQUAL |
%left GREATER LESS EQUAL NOTEQUAL |
206 |
|
|
436 |
type : /* EMPTY */ { portset.type= SOCK_STREAM; } |
type : /* EMPTY */ { portset.type= SOCK_STREAM; } |
437 |
| TYPE TCP { portset.type= SOCK_STREAM; |
| TYPE TCP { portset.type= SOCK_STREAM; |
438 |
Run.servicessl= TRUE; } |
Run.servicessl= TRUE; } |
439 |
| TYPE TCPSSL certmd5 { portset.type= SOCK_STREAM; |
| TYPE TCPSSL sslversion certmd5 { portset.type= SOCK_STREAM; |
440 |
portset.ssl= TRUE; } |
portset.ssl= TRUE; } |
441 |
| TYPE UDP { portset.type= SOCK_DGRAM; } |
| TYPE UDP { portset.type= SOCK_DGRAM; } |
442 |
; |
; |
443 |
|
|
446 |
| EXPECT CERTMD5 STRING { portset.certmd5= $3; } |
| EXPECT CERTMD5 STRING { portset.certmd5= $3; } |
447 |
; |
; |
448 |
|
|
449 |
|
sslversion : /* EMPTY */ { portset.sslversion= SSL_VERSION_AUTO; } |
450 |
|
| SSLV2 { portset.sslversion= SSL_VERSION_SSLV2; } |
451 |
|
| SSLV3 { portset.sslversion= SSL_VERSION_SSLV3; } |
452 |
|
| TLSV1 { portset.sslversion= SSL_VERSION_TLS; } |
453 |
|
| SSLAUTO { portset.sslversion= SSL_VERSION_AUTO; } |
454 |
|
; |
455 |
|
|
456 |
protocol : /* EMPTY */ { portset.protocol= addprotocol(P_DEFAULT); } |
protocol : /* EMPTY */ { portset.protocol= addprotocol(P_DEFAULT); } |
457 |
| PROTOCOL DEFAULT { portset.protocol= addprotocol(P_DEFAULT); } |
| PROTOCOL DEFAULT { portset.protocol= addprotocol(P_DEFAULT); } |
458 |
| PROTOCOL HTTP request {portset.protocol= addprotocol(P_HTTP);} |
| PROTOCOL HTTP request {portset.protocol= addprotocol(P_HTTP);} |
942 |
|
|
943 |
} else { |
} else { |
944 |
|
|
945 |
p->ssl= new_ssl_connection(NULL); |
p->ssl= new_ssl_connection(NULL, pp->sslversion); |
946 |
|
|
947 |
} |
} |
948 |
|
|
1257 |
portset.type= SOCK_STREAM; |
portset.type= SOCK_STREAM; |
1258 |
portset.family= AF_INET; |
portset.family= AF_INET; |
1259 |
portset.ssl= FALSE; |
portset.ssl= FALSE; |
1260 |
|
portset.sslversion= SSL_VERSION_AUTO; |
1261 |
portset.request= NULL; |
portset.request= NULL; |
1262 |
portset.protocol= NULL; |
portset.protocol= NULL; |
1263 |
portset.pathname= NULL; |
portset.pathname= NULL; |