Mercurial > prosody-hg
comparison core/hostmanager.lua @ 2628:04958fb28c44
certmanager, hostmanager: Rename get_context() to create_context() to be more explicit about what it does
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 13 Feb 2010 16:08:43 +0000 |
| parents | b8f6aa70d019 |
| children | 692b3c6c5bd2 |
comparison
equal
deleted
inserted
replaced
| 2627:ce5b5d7f87c3 | 2628:04958fb28c44 |
|---|---|
| 63 if option_name:match("_ports$") then | 63 if option_name:match("_ports$") then |
| 64 log("warn", "%s: Option '%s' has no effect for virtual hosts - put it in global Host \"*\" instead", host, option_name); | 64 log("warn", "%s: Option '%s' has no effect for virtual hosts - put it in global Host \"*\" instead", host, option_name); |
| 65 end | 65 end |
| 66 end | 66 end |
| 67 | 67 |
| 68 hosts[host].ssl_ctx = certmanager.get_context(host, "client", host_config); -- for outgoing connections | 68 hosts[host].ssl_ctx = certmanager.create_context(host, "client", host_config); -- for outgoing connections |
| 69 hosts[host].ssl_ctx_in = certmanager.get_context(host, "server", host_config); -- for incoming connections | 69 hosts[host].ssl_ctx_in = certmanager.create_context(host, "server", host_config); -- for incoming connections |
| 70 | 70 |
| 71 log((hosts_loaded_once and "info") or "debug", "Activated host: %s", host); | 71 log((hosts_loaded_once and "info") or "debug", "Activated host: %s", host); |
| 72 eventmanager.fire_event("host-activated", host, host_config); | 72 eventmanager.fire_event("host-activated", host, host_config); |
| 73 end | 73 end |
| 74 | 74 |
