From 52149ee341f36a0dba563cfdb4e17410b04b357d Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 01 Oct 2008 16:06:35 +0000 Subject: Allow openpgp-only sites --- (limited to 'src/gnutls_hooks.c') diff --git a/src/gnutls_hooks.c b/src/gnutls_hooks.c index 57d3aaf..57bfeba 100644 --- a/src/gnutls_hooks.c +++ b/src/gnutls_hooks.c @@ -409,8 +409,9 @@ mgs_hook_post_config(apr_pool_t * p, apr_pool_t * plog, } #endif - if (sc->certs_x509[0] == NULL - && sc->enabled == GNUTLS_ENABLED_TRUE) { + if (sc->certs_x509[0] == NULL && + sc->cert_pgp == NULL && + sc->enabled == GNUTLS_ENABLED_TRUE) { ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s, "[GnuTLS] - Host '%s:%d' is missing a " "Certificate File!", s->server_hostname, @@ -418,8 +419,9 @@ mgs_hook_post_config(apr_pool_t * p, apr_pool_t * plog, exit(-1); } - if (sc->privkey_x509 == NULL - && sc->enabled == GNUTLS_ENABLED_TRUE) { + if (sc->enabled == GNUTLS_ENABLED_TRUE && + ((sc->certs_x509[0] != NULL && sc->privkey_x509 == NULL) || + (sc->cert_pgp != NULL && sc->privkey_pgp == NULL))) { ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s, "[GnuTLS] - Host '%s:%d' is missing a " "Private Key File!", -- cgit v0.9.2