Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused vars from mini_ssl.c. #1153

Merged
merged 1 commit into from Nov 22, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 3 additions & 6 deletions ext/puma_http11/mini_ssl.c
Expand Up @@ -157,7 +157,7 @@ VALUE engine_init_server(VALUE self, VALUE mini_ssl_ctx) {
StringValue(ca);
SSL_CTX_load_verify_locations(ctx, RSTRING_PTR(ca), NULL);
}

SSL_CTX_set_options(ctx, SSL_OP_CIPHER_SERVER_PREFERENCE | SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_SINGLE_DH_USE | SSL_OP_SINGLE_ECDH_USE | SSL_OP_NO_COMPRESSION);
SSL_CTX_set_session_cache_mode(ctx, SSL_SESS_CACHE_OFF);

Expand Down Expand Up @@ -329,8 +329,7 @@ VALUE engine_extract(VALUE self) {

VALUE engine_shutdown(VALUE self) {
ms_conn* conn;
int ok, err;
char buf[512];
int ok;

Data_Get_Struct(self, ms_conn, conn);

Expand All @@ -346,8 +345,6 @@ VALUE engine_shutdown(VALUE self) {

VALUE engine_init(VALUE self) {
ms_conn* conn;
int ok, err;
char buf[512];

Data_Get_Struct(self, ms_conn, conn);

Expand Down Expand Up @@ -404,7 +401,7 @@ void Init_mini_ssl(VALUE puma) {
OpenSSL_add_ssl_algorithms();
SSL_load_error_strings();
ERR_load_crypto_strings();

mod = rb_define_module_under(puma, "MiniSSL");
eng = rb_define_class_under(mod, "Engine", rb_cObject);

Expand Down