Lines 149-154
Link Here
|
149 |
"Set user name to SSL variable value") |
149 |
"Set user name to SSL variable value") |
150 |
SSL_CMD_SRV(StrictSNIVHostCheck, FLAG, |
150 |
SSL_CMD_SRV(StrictSNIVHostCheck, FLAG, |
151 |
"Strict SNI virtual host checking") |
151 |
"Strict SNI virtual host checking") |
|
|
152 |
SSL_CMD_SRV(Timeout, TAKE1, |
153 |
"SSL connection lifetime " |
154 |
"(`N' - number of seconds)") |
152 |
|
155 |
|
153 |
/* |
156 |
/* |
154 |
* Proxy configuration for remote SSL connections |
157 |
* Proxy configuration for remote SSL connections |
Lines 366-372
Link Here
|
366 |
char *vhost_md5; |
369 |
char *vhost_md5; |
367 |
modssl_ctx_t *mctx; |
370 |
modssl_ctx_t *mctx; |
368 |
server_rec *server; |
371 |
server_rec *server; |
369 |
|
372 |
|
370 |
if (!sslconn) { |
373 |
if (!sslconn) { |
371 |
sslconn = ssl_init_connection_ctx(c); |
374 |
sslconn = ssl_init_connection_ctx(c); |
372 |
} |
375 |
} |
Lines 395-401
Link Here
|
395 |
|
398 |
|
396 |
return DECLINED; /* XXX */ |
399 |
return DECLINED; /* XXX */ |
397 |
} |
400 |
} |
398 |
|
401 |
|
399 |
vhost_md5 = ap_md5_binary(c->pool, (unsigned char *)sc->vhost_id, |
402 |
vhost_md5 = ap_md5_binary(c->pool, (unsigned char *)sc->vhost_id, |
400 |
sc->vhost_id_len); |
403 |
sc->vhost_id_len); |
401 |
|
404 |
|
Lines 455-461
Link Here
|
455 |
{ |
458 |
{ |
456 |
SSLSrvConfigRec *sc; |
459 |
SSLSrvConfigRec *sc; |
457 |
SSLConnRec *sslconn = myConnConfig(c); |
460 |
SSLConnRec *sslconn = myConnConfig(c); |
458 |
|
461 |
apr_status_t tv; |
|
|
462 |
|
459 |
if (sslconn) { |
463 |
if (sslconn) { |
460 |
sc = mySrvConfig(sslconn->server); |
464 |
sc = mySrvConfig(sslconn->server); |
461 |
} |
465 |
} |
Lines 482-487
Link Here
|
482 |
return DECLINED; |
486 |
return DECLINED; |
483 |
} |
487 |
} |
484 |
|
488 |
|
|
|
489 |
/* Set the SSL connection timeout. */ |
490 |
rv = apr_socket_timeout_set(csd, sc->timeout); |
491 |
if(rv != APR_SUCCESS) { |
492 |
/* expected cause is that the client disconnected already */ |
493 |
ap_log_cerror(APLOG_MARK, APLOG_DEBUG, rv, c, |
494 |
"Unable to set timeout on SSL socket"); |
495 |
} |
496 |
|
485 |
/* |
497 |
/* |
486 |
* Remember the connection information for |
498 |
* Remember the connection information for |
487 |
* later access inside callback functions |
499 |
* later access inside callback functions |