Skip to content

Commit

Permalink
Add explict cast to (void*) as needed when compiling against OpenSSL …
Browse files Browse the repository at this point in the history
…1.1.1

Motivation:

OpenSSL 1.1.1 expect to receive an argument of type  void*, so the build currently fails as we treat warnings as errors during compilation.

Modifications:

Add cast to  (void*).

Result:

Build also passes when compiling against OpenSSL 1.1.1
  • Loading branch information
normanmaurer committed Jun 19, 2018
1 parent e9913cb commit 35cd01c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openssl-dynamic/src/main/c/sslcontext.c
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,7 @@ TCN_IMPLEMENT_CALL(void, SSLContext, enableOcsp)(TCN_STDARGS, jlong ctx, jboolea
// return value.
//
const int *arg = (client ? &OCSP_CLIENT_ACK : &OCSP_SERVER_ACK);
if (SSL_CTX_set_tlsext_status_arg(c->ctx, arg) <= 0L) {
if (SSL_CTX_set_tlsext_status_arg(c->ctx, (void*) arg) <= 0L) {
tcn_ThrowException(e, "SSL_CTX_set_tlsext_status_arg() failed");
return;
}
Expand Down

0 comments on commit 35cd01c

Please sign in to comment.