MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / mod_init

Function mod_init

modules/http2d/http2d.c:107–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106
107static int mod_init(void)
108{
109 if (!h2_tls_cert.s) {
110 LM_ERR("no TLS cert filepath provided (mandatory)\n");
111 return -1;
112 }
113
114 if (!h2_tls_key.s) {
115 LM_ERR("no TLS key filepath provided (mandatory)\n");
116 return -1;
117 }
118
119 if (!h2_ip)
120 h2_ip = "127.0.0.1";
121
122 h2_tls_cert.len = strlen(h2_tls_cert.s);
123 h2_tls_key.len = strlen(h2_tls_key.s);
124
125 if (h2_init_evi() != 0) {
126 LM_ERR("failed to init EVI structures\n");
127 return -1;
128 }
129
130 return 0;
131}
132
133
134static int h2_send_response(struct sip_msg *msg, int *code,

Callers

nothing calls this directly

Calls 1

h2_init_eviFunction · 0.85

Tested by

no test coverage detected