Changeset 482f47f in mod_gnutls


Ignore:
Timestamp:
Apr 8, 2005, 6:31:04 PM (14 years ago)
Author:
Paul Querna <chip@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
f2d7e3c
Parents:
5a6446d
Message:

include support for 2.0.xx

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/mod_gnutls.h.in

    r5a6446d r482f47f  
    2626#include "apr_strings.h"
    2727#include "apr_tables.h"
     28#include "ap_release.h"
    2829
    2930#ifndef __mod_gnutls_h_inc
     
    4647
    4748#define MOD_GNUTLS_DEBUG @OOO_MAINTAIN@
     49
     50/* Recent Versions of 2.1 renamed several hooks. This allows us to
     51   compile on 2.0.xx  */
     52#if AP_SERVER_MINORVERSION_NUMBER >= 1
     53#if AP_SERVER_PATCHLEVEL_NUMBER >= 3
     54#define USING_2_1_RECENT 1
     55#endif
     56#endif
     57
     58#ifndef USING_2_1_RECENT
     59#define USING_2_1_RECENT 0
     60#endif
    4861
    4962typedef enum
  • src/mod_gnutls.c

    r5a6446d r482f47f  
    527527    ap_hook_child_init(mod_gnutls_hook_child_init, NULL, NULL,
    528528                        APR_HOOK_MIDDLE);
     529#if USING_2_1_RECENT
    529530    ap_hook_http_scheme(mod_gnutls_hook_http_scheme, NULL, NULL,
    530531                        APR_HOOK_MIDDLE);
     532#else
     533    ap_hook_http_method(mod_gnutls_hook_http_scheme, NULL, NULL,
     534                        APR_HOOK_MIDDLE);
     535#endif
    531536    ap_hook_default_port(mod_gnutls_hook_default_port, NULL, NULL,
    532537                         APR_HOOK_MIDDLE);
Note: See TracChangeset for help on using the changeset viewer.