Changeset 4e388b0 in mod_gnutls for src/gnutls_hooks.c


Ignore:
Timestamp:
Nov 2, 2018, 2:24:00 PM (16 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
debian/master, master
Children:
7f2fd55
Parents:
f06c148
Message:

Consistently use strcasecmp() instead of mixing in apr_strnatcasecmp()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_hooks.c

    rf06c148 r4e388b0  
    3131#include <util_mutex.h>
    3232#include <apr_escape.h>
     33/* This provides strcmp and related functions */
     34#define APR_WANT_STRFUNC
     35#include <apr_want.h>
    3336
    3437#ifdef ENABLE_MSVA
     
    880883
    881884    /* Check ServerName First! */
    882     if(apr_strnatcasecmp(x->sni_name, s->server_hostname) == 0) {
     885    if (strcasecmp(x->sni_name, s->server_hostname) == 0) {
    883886        // We have a match, save this server configuration
    884887        x->sc = tsc;
     
    887890    } else if(s->names->nelts) {
    888891        names = s->names;
    889         name = (char **)names->elts;
     892        name = (char **) names->elts;
    890893        for (int i = 0; i < names->nelts; ++i)
    891894        {
    892             if (!name[i]) { continue; }
    893             if (apr_strnatcasecmp(x->sni_name, name[i]) == 0) {
     895            if (!name[i])
     896                continue;
     897            if (strcasecmp(x->sni_name, name[i]) == 0)
     898            {
    894899                // We have a match, save this server configuration
    895900                x->sc = tsc;
Note: See TracChangeset for help on using the changeset viewer.