1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Remove unused vars from mini_ssl.c. (#1153)

This commit is contained in:
Francesco Rodriguez 2016-11-22 15:54:30 +01:00 committed by Nate Berkopec
parent c23c4d5a27
commit 1ed6ee0338

View file

@ -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);
@ -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);
@ -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);
@ -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);