Changeset 41f7031 in mod_gnutls for src/gnutls_hooks.c
- Timestamp:
- Dec 2, 2007, 1:18:19 AM (15 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, master, msva, proxy-ticket, upstream
- Children:
- 717206c
- Parents:
- 9bb68fe
- git-author:
- Nikos Mavrogiannopoulos <nmav@…> (12/02/07 01:18:19)
- git-committer:
- Nokis Mavrogiannopoulos <nmav@…> (12/02/07 01:18:19)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gnutls_hooks.c
r9bb68fe r41f7031 223 223 0, 0, NULL, &data_len); 224 224 225 if (rv >= 0&& data_len > 1) {225 if (rv == GNUTLS_E_SHORT_MEMORY_BUFFER && data_len > 1) { 226 226 *cert_cn = apr_palloc(p, data_len); 227 227 rv = gnutls_x509_crt_get_dn_by_oid(cert, 228 GNUTLS_OID_X520_COMMON_NAME, 0, 229 0, *cert_cn, &data_len); 228 GNUTLS_OID_X520_COMMON_NAME, 0, 0, *cert_cn, &data_len); 230 229 } else { /* No CN return subject alternative name */ 231 230 … … 357 356 if (sc->srp_tpasswd_conf_file != NULL 358 357 && sc->srp_tpasswd_file != NULL) { 359 gnutls_srp_set_server_credentials_file(sc->srp_creds, 360 sc-> 361 srp_tpasswd_file, 362 sc-> 363 srp_tpasswd_conf_file); 358 rv = gnutls_srp_set_server_credentials_file(sc->srp_creds, 359 sc->srp_tpasswd_file, sc->srp_tpasswd_conf_file); 360 361 if (rv < 0 && sc->enabled == GNUTLS_ENABLED_TRUE) { 362 ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s, 363 "[GnuTLS] - Host '%s:%d' is missing a " 364 "SRP password or conf File!", s->server_hostname, 365 s->port); 366 exit(-1); 367 } 364 368 } 365 369 … … 385 389 rv = read_crt_cn(p, sc->cert_x509, &sc->cert_cn); 386 390 if (rv < 0) { 391 ap_log_error(APLOG_MARK, APLOG_EMERG, 0, s, 392 "[GnuTLS] - Cannot find a certificate for host '%s:%d'! Disabling TLS.", 393 s->server_hostname, s->port); 387 394 sc->enabled = GNUTLS_ENABLED_FALSE; 388 395 sc->cert_cn = NULL;
Note: See TracChangeset
for help on using the changeset viewer.