192 + } |
192 + } |
193 + |
193 + |
194 return 1; |
194 return 1; |
195 } |
195 } |
196 |
196 |
|
197 Index: tls/tls_init.c |
|
198 diff -Nau tls/tls_init.c.orig tls/tls_init.c |
|
199 --- tls/tls_init.c.orig 2012-01-17 13:16:02.000000000 +0100 |
|
200 +++ tls/tls_init.c 2012-03-30 18:34:08.540354386 +0200 |
|
201 @@ -617,7 +617,7 @@ |
|
202 d->cert_file = tls_cert_file; |
|
203 } |
|
204 if (load_certificate(d->ctx, d->cert_file) < 0) |
|
205 - return -1; |
|
206 + LM_WARN("tls[%s:%d] proceeding with no certificate at all!\n", ip_addr2a(&d->addr), d->port); |
|
207 |
|
208 /* |
|
209 * load ca |
|
210 @@ -629,7 +629,7 @@ |
|
211 d->ca_file = tls_ca_file; |
|
212 } |
|
213 if (d->ca_file && load_ca(d->ctx, d->ca_file) < 0) |
|
214 - return -1; |
|
215 + LM_WARN("tls[%s:%d] proceeding with no CA at all!\n", ip_addr2a(&d->addr), d->port); |
|
216 d = d->next; |
|
217 } |
|
218 |
|
219 @@ -644,7 +644,7 @@ |
|
220 d->pkey_file = tls_pkey_file; |
|
221 } |
|
222 if (load_private_key(d->ctx, d->pkey_file) < 0) |
|
223 - return -1; |
|
224 + LM_WARN("tls[%s:%d] proceeding with no key at all!\n", ip_addr2a(&d->addr), d->port); |
|
225 d = d->next; |
|
226 } |
|
227 return 0; |