@@ -33,7 +33,7 @@ static VALUE eSSLErrorWaitReadable;
33
33
static VALUE eSSLErrorWaitWritable ;
34
34
35
35
static ID id_call , ID_callback_state , id_tmp_dh_callback , id_tmp_ecdh_callback ,
36
- id_npn_protocols_encoded ;
36
+ id_npn_protocols_encoded , id_each ;
37
37
static VALUE sym_exception , sym_wait_readable , sym_wait_writable ;
38
38
39
39
static ID id_i_cert_store , id_i_ca_file , id_i_ca_path , id_i_verify_mode ,
@@ -609,7 +609,7 @@ static VALUE
609
609
ssl_encode_npn_protocols (VALUE protocols )
610
610
{
611
611
VALUE encoded = rb_str_new (NULL , 0 );
612
- rb_iterate ( rb_each , protocols , ssl_npn_encode_protocol_i , encoded );
612
+ rb_block_call ( protocols , id_each , 0 , 0 , ssl_npn_encode_protocol_i , encoded );
613
613
return encoded ;
614
614
}
615
615
@@ -2926,6 +2926,7 @@ Init_ossl_ssl(void)
2926
2926
id_tmp_dh_callback = rb_intern ("tmp_dh_callback" );
2927
2927
id_tmp_ecdh_callback = rb_intern ("tmp_ecdh_callback" );
2928
2928
id_npn_protocols_encoded = rb_intern ("npn_protocols_encoded" );
2929
+ id_each = rb_intern ("each" );
2929
2930
2930
2931
#define DefIVarID (name ) do \
2931
2932
id_i_##name = rb_intern("@"#name); while (0)
0 commit comments