| 105 | |
| 106 | |
| 107 | static 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 | |
| 134 | static int h2_send_response(struct sip_msg *msg, int *code, |
nothing calls this directly
no test coverage detected