Skip to content

Commit

Permalink
login-common: Explicitly ignore SSL_CTX_set_ecdh_auto() return value
Browse files Browse the repository at this point in the history
This is to fix a compiler warning.
  • Loading branch information
mrannanj committed Feb 19, 2018
1 parent 3ef6a75 commit ccdff25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/login-common/ssl-proxy-openssl.c
Expand Up @@ -1067,7 +1067,7 @@ ssl_proxy_ctx_set_crypto_params(SSL_CTX *ssl_ctx,
#ifdef SSL_CTX_set_ecdh_auto
/* OpenSSL >= 1.0.2 automatically handles ECDH temporary key parameter
selection. */
SSL_CTX_set_ecdh_auto(ssl_ctx, 1);
(void)SSL_CTX_set_ecdh_auto(ssl_ctx, 1);
#else
/* For OpenSSL < 1.0.2, ECDH temporary key parameter selection must be
performed manually. Attempt to select the same curve as that used
Expand Down

0 comments on commit ccdff25

Please sign in to comment.