diff options
author | Rob Crittenden <rcritten@redhat.com> | 2015-09-30 20:32:46 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2015-10-02 16:51:56 -0400 |
commit | 979a74f6ce2e61fb607414d9ce5f39226630bab2 (patch) | |
tree | c5801695e918d87af2e0d02ded72ec08b09f4e14 /nss_engine_log.c | |
parent | d42edc43ef8bd40897f5dc599eb4c02b7e69e4b2 (diff) | |
download | mod_nss-979a74f6ce2e61fb607414d9ce5f39226630bab2.tar.gz mod_nss-979a74f6ce2e61fb607414d9ce5f39226630bab2.tar.xz mod_nss-979a74f6ce2e61fb607414d9ce5f39226630bab2.zip |
Fix compatibility with RHEL 6.x (Apache 2.2.x and NSS 3.15.1)
Diffstat (limited to 'nss_engine_log.c')
-rw-r--r-- | nss_engine_log.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nss_engine_log.c b/nss_engine_log.c index 62a4de8..b4e5d1b 100644 --- a/nss_engine_log.c +++ b/nss_engine_log.c @@ -321,7 +321,11 @@ void nss_die(void) exit(1); } +#if AP_SERVER_MINORVERSION_NUMBER <= 2 +void nss_log_nss_error(const char *file, int line, int level, server_rec *s) +#else void nss_log_nss_error(const char *file, int line, int module_index, int level, server_rec *s) +#endif { const char *err; PRInt32 error; @@ -340,7 +344,11 @@ void nss_log_nss_error(const char *file, int line, int module_index, int level, err = "Unknown"; } +#if AP_SERVER_MINORVERSION_NUMBER <= 2 + ap_log_error(file, line, level, 0, s, +#else ap_log_error(file, line, module_index, level, 0, s, +#endif "SSL Library Error: %d %s", error, err); } |