]> granicus.if.org Git - apache/commitdiff
fixed const for d2i_ASN1_type_bytes() usage.
authorGuenter Knauf <fuankg@apache.org>
Sun, 18 Jul 2010 22:49:59 +0000 (22:49 +0000)
committerGuenter Knauf <fuankg@apache.org>
Sun, 18 Jul 2010 22:49:59 +0000 (22:49 +0000)
Not sure if 0.9.8 is correct, but checked that 0.9.7m doesnt have const.

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

modules/ssl/ssl_engine_vars.c
modules/ssl/ssl_toolkit_compat.h

index 48d46eeefb7c319c8710bfd9f258794663bdf902..2b14198c21818b26139c94144bdf207171d9c97c 100644 (file)
@@ -785,7 +785,7 @@ void modssl_var_extract_dns(apr_table_t *t, SSL *ssl, apr_pool_t *p)
  * success and writes the string to the given bio. */
 static int dump_extn_value(BIO *bio, ASN1_OCTET_STRING *str)
 {
-    unsigned char *pp = str->data;
+    MODSSL_D2I_ASN1_type_bytes_CONST unsigned char *pp = str->data;
     ASN1_STRING *ret = ASN1_STRING_new();
     int rv = 0;
     
index 276db45d76ccd2c7b663c30cdcf7ed935e1212a5..e87361b7ff505378deffafa162eae2100827589e 100644 (file)
 #endif
 
 #if (OPENSSL_VERSION_NUMBER >= 0x00908000)
+# define MODSSL_D2I_ASN1_type_bytes_CONST const
 # define MODSSL_D2I_PrivateKey_CONST const
 # define MODSSL_D2I_X509_CONST const
 #else
+# define MODSSL_D2I_ASN1_type_bytes_CONST
 # define MODSSL_D2I_PrivateKey_CONST
 # define MODSSL_D2I_X509_CONST
 #endif