[前][次][番号順一覧][スレッド一覧]

ruby-changes:39270

From: nobu <ko1@a...>
Date: Thu, 23 Jul 2015 09:10:45 +0900 (JST)
Subject: [ruby-changes:39270] nobu:r51351 (trunk): ossl_ssl.c: suppress warnings

nobu	2015-07-23 09:10:40 +0900 (Thu, 23 Jul 2015)

  New Revision: 51351

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51351

  Log:
    ossl_ssl.c: suppress warnings
    
    * ext/openssl/ossl_ssl.c (ossl_sslctx_setup): fix argument types
      to suppress shorten-64-to-32 and shorten-64-to-32 warnings.

  Modified files:
    trunk/ext/openssl/ossl_ssl.c
Index: ext/openssl/ossl_ssl.c
===================================================================
--- ext/openssl/ossl_ssl.c	(revision 51350)
+++ ext/openssl/ossl_ssl.c	(revision 51351)
@@ -869,7 +869,7 @@ ossl_sslctx_setup(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_ssl.c#L869
     val = rb_iv_get(self, "@alpn_protocols");
     if (!NIL_P(val)) {
 	VALUE rprotos = ssl_encode_npn_protocols(val);
-	SSL_CTX_set_alpn_protos(ctx, StringValueCStr(rprotos), RSTRING_LEN(rprotos));
+	SSL_CTX_set_alpn_protos(ctx, (const unsigned char *)StringValueCStr(rprotos), RSTRING_LENINT(rprotos));
 	OSSL_Debug("SSL ALPN values added");
     }
     if (RTEST(rb_iv_get(self, "@alpn_select_cb"))) {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]