diff options
author | Nokis Mavrogiannopoulos | 2008-03-05 17:38:09 +0000 |
---|---|---|
committer | Nokis Mavrogiannopoulos | 2008-03-05 17:38:09 +0000 |
commit | 2cb49bd5137176e1445550399b6e9592607858a3 (patch) | |
tree | e7c8933ce56ecdac588fbaa9af0c4beb03850c3e /src/gnutls_config.c | |
parent | fc05b4b880d4247da9353cae6be44180dee17b23 (diff) |
Diffstat (limited to 'src/gnutls_config.c')
-rw-r--r-- | src/gnutls_config.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gnutls_config.c b/src/gnutls_config.c index 8d6308a..4786f6d 100644 --- a/src/gnutls_config.c +++ b/src/gnutls_config.c | |||
@@ -202,6 +202,8 @@ const char *mgs_set_key_file(cmd_parms * parms, void *dummy, | |||
202 | return NULL; | 202 | return NULL; |
203 | } | 203 | } |
204 | 204 | ||
205 | #ifdef ENABLE_SRP | ||
206 | |||
205 | const char *mgs_set_srp_tpasswd_file(cmd_parms * parms, void *dummy, | 207 | const char *mgs_set_srp_tpasswd_file(cmd_parms * parms, void *dummy, |
206 | const char *arg) | 208 | const char *arg) |
207 | { | 209 | { |
@@ -228,6 +230,8 @@ const char *mgs_set_srp_tpasswd_conf_file(cmd_parms * parms, void *dummy, | |||
228 | return NULL; | 230 | return NULL; |
229 | } | 231 | } |
230 | 232 | ||
233 | #endif | ||
234 | |||
231 | const char *mgs_set_cache(cmd_parms * parms, void *dummy, | 235 | const char *mgs_set_cache(cmd_parms * parms, void *dummy, |
232 | const char *type, const char *arg) | 236 | const char *type, const char *arg) |
233 | { | 237 | { |
@@ -426,6 +430,7 @@ void *mgs_config_server_create(apr_pool_t * p, server_rec * s) | |||
426 | ": (%d) %s", ret, gnutls_strerror(ret)); | 430 | ": (%d) %s", ret, gnutls_strerror(ret)); |
427 | } | 431 | } |
428 | 432 | ||
433 | #ifdef ENABLE_SRP | ||
429 | ret = gnutls_srp_allocate_server_credentials(&sc->srp_creds); | 434 | ret = gnutls_srp_allocate_server_credentials(&sc->srp_creds); |
430 | if (ret < 0) { | 435 | if (ret < 0) { |
431 | return apr_psprintf(p, "GnuTLS: Failed to initialize" | 436 | return apr_psprintf(p, "GnuTLS: Failed to initialize" |
@@ -434,6 +439,8 @@ void *mgs_config_server_create(apr_pool_t * p, server_rec * s) | |||
434 | 439 | ||
435 | sc->srp_tpasswd_conf_file = NULL; | 440 | sc->srp_tpasswd_conf_file = NULL; |
436 | sc->srp_tpasswd_file = NULL; | 441 | sc->srp_tpasswd_file = NULL; |
442 | #endif | ||
443 | |||
437 | sc->privkey_x509 = NULL; | 444 | sc->privkey_x509 = NULL; |
438 | memset( sc->certs_x509, 0, sizeof(sc->certs_x509)); | 445 | memset( sc->certs_x509, 0, sizeof(sc->certs_x509)); |
439 | sc->certs_x509_num = 0; | 446 | sc->certs_x509_num = 0; |