https://issues.apache.org/bugzilla/show_bug.cgi?id=50121

           Summary: OCSP Stapling compiler warnings when using OpenSSL-1.x
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_ssl
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=26186)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26186)
Make ssl_util_stapling.c compile cleanly against OpenSSL-1.x

When compiling httpd 2.3-HEAD against OpenSSL CVS-HEAD, I see the following
warnings (I'm using GCC 4.4.3):

ssl_util_stapling.c: In function 'ssl_stapling_init_cert':
ssl_util_stapling.c:140: warning: assignment from incompatible pointer type
ssl_util_stapling.c:142: warning: passing argument 1 of 'sk_pop' from
incompatible pointer type
/include/openssl/stack.h:96: note: expected 'struct _STACK *' but argument is
of type 'struct stack_st_STRING *'
ssl_util_stapling.c:148: warning: passing argument 1 of 'X509_email_free' from
incompatible pointer type
/include/openssl/x509v3.h:701: note: expected 'struct stack_st_OPENSSL_STRING
*' but argument is of type 'struct stack_st_STRING *'

I see the same warnings when compiling against OpenSSL-1.0.0a, but no warnings
when compiling against OpenSSL-0.9.8o.

I'm guessing these warnings might be unimportant, but nonetheless I've attached
a patch to get ssl_util_stapling.c to compile cleanly against OpenSSL 0.9.8o,
1.0.0a and CVS-HEAD.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to