]> granicus.if.org Git - apache/commitdiff
* modules/ssl/ssl_private.h: Drop some redundant/unused macros; pick
authorJoe Orton <jorton@apache.org>
Wed, 16 Mar 2011 16:51:46 +0000 (16:51 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 16 Mar 2011 16:51:46 +0000 (16:51 +0000)
  up stdlib.h.

* modules/ssl/ssl_engine_pphrase.c (ssl_pphrase_Handle),
  modules/ssl/ssl_engine_vars.c: Stop pretending mod_ssl has a version
  independent of the rest of the server.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1082202 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_pphrase.c
modules/ssl/ssl_engine_vars.c
modules/ssl/ssl_private.h

index 61ab0a6fd7abcba3631609ad48c523618c66f9a7..deb8f92d74de5c72ee5b74d99e12f7bb401c6217 100644 (file)
@@ -747,8 +747,8 @@ int ssl_pphrase_Handle_CB(char *buf, int bufsize, int verify, void *srv)
          * something...
          */
         if (*pnPassPhraseDialog == 1) {
-            apr_file_printf(writetty, "%s mod_ssl/%s (Pass Phrase Dialog)\n",
-                            AP_SERVER_BASEVERSION, MOD_SSL_VERSION);
+            apr_file_printf(writetty, "%s mod_ssl (Pass Phrase Dialog)\n",
+                            AP_SERVER_BASEVERSION);
             apr_file_printf(writetty, "Some of your private key files are encrypted for security reasons.\n");
             apr_file_printf(writetty, "In order to read them you have to provide the pass phrases.\n");
         }
index a8c0aef41f09dac2ee2450a9c5549504bac3e4dd..99d38325604f81aed63297b4d5152145df9766e9 100644 (file)
@@ -59,7 +59,7 @@ static int ssl_is_https(conn_rec *c)
     return sslconn && sslconn->ssl;
 }
 
-static const char var_interface[] = "mod_ssl/" MOD_SSL_VERSION;
+static const char var_interface[] = "mod_ssl/" AP_SERVER_BASEREVISION;
 static char var_library_interface[] = SSL_LIBRARY_TEXT;
 static char *var_library = NULL;
 
index 1de549a40622c20fbc82c95f4a2ec94fda60f5ef..89051adcd528e889851ac7572597d14b06464d27 100644 (file)
@@ -43,6 +43,7 @@
 #include "apr.h"
 #include "apr_strings.h"
 #define APR_WANT_STRFUNC
+#define APR_WANT_MEMFUNC
 #include "apr_want.h"
 #include "apr_tables.h"
 #include "apr_lib.h"
@@ -53,7 +54,9 @@
 #include "ap_socache.h"
 #include "mod_auth.h"
 
-#define MOD_SSL_VERSION AP_SERVER_BASEREVISION
+#ifdef APR_HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
 
 #ifndef FALSE
 #define FALSE 0
 #define TRUE !FALSE
 #endif
 
-#ifndef YY_NULL
-#define YY_NULL 0
-#endif
-
-#ifndef MIN
-#define MIN(a,b) (((a)<(b))?(a):(b))
-#endif
-
 #ifndef BOOL
 #define BOOL unsigned int
 #endif
 
-#ifndef NULL
-#define NULL (void *)0
-#endif
-
-#ifndef NUL
-#define NUL '\0'
-#endif
-
-
 /* mod_ssl headers */
 #include "ssl_toolkit_compat.h"
 #include "ap_expr.h"