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

ruby-changes:17190

From: nahi <ko1@a...>
Date: Mon, 6 Sep 2010 11:17:47 +0900 (JST)
Subject: [ruby-changes:17190] Ruby:r29190 (trunk): * Fixed wrong check of missing functions. Patch by Adrian Quark.

nahi	2010-09-06 11:08:30 +0900 (Mon, 06 Sep 2010)

  New Revision: 29190

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

  Log:
    * Fixed wrong check of missing functions. Patch by Adrian Quark.
              ref #3400
              The patch contains following comment:
                This patch should avoid unnecessary incompatibility with future
                versions of Openssl.  Changes suggested by bmaher_at_amazon.com.

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/openssl_missing.c
    trunk/ext/openssl/openssl_missing.h

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29189)
+++ ChangeLog	(revision 29190)
@@ -1,3 +1,11 @@
+Mon Sep  6 11:03:13 2010  NAKAMURA, Hiroshi  <nahi@r...>
+
+	* Fixed wrong check of missing functions. Patch by Adrian Quark.
+	  ref #3400
+	  The patch contains following comment:
+	    This patch should avoid unnecessary incompatibility with future
+	    versions of Openssl.  Changes suggested by bmaher_at_amazon.com.
+
 Mon Sep  6 10:46:55 2010  NAKAMURA, Hiroshi  <nahi@r...>
 
 	* Fixed exception message for SSL post connection check failure. Patch
Index: ext/openssl/openssl_missing.c
===================================================================
--- ext/openssl/openssl_missing.c	(revision 29189)
+++ ext/openssl/openssl_missing.c	(revision 29190)
@@ -36,12 +36,13 @@
 #endif /* NO_HMAC */
 
 #if !defined(HAVE_X509_STORE_SET_EX_DATA)
-
 int X509_STORE_set_ex_data(X509_STORE *str, int idx, void *data)
 {
     return CRYPTO_set_ex_data(&str->ex_data, idx, data);
 }
+#endif
 
+#if !defined(HAVE_X509_STORE_GET_EX_DATA)
 void *X509_STORE_get_ex_data(X509_STORE *str, int idx)
 {
     return CRYPTO_get_ex_data(&str->ex_data, idx);
Index: ext/openssl/openssl_missing.h
===================================================================
--- ext/openssl/openssl_missing.h	(revision 29189)
+++ ext/openssl/openssl_missing.h	(revision 29190)
@@ -63,7 +63,7 @@
 	(d2i_of_void *)d2i_PKCS7_RECIP_INFO, (char *)ri)
 #endif
 
-#if !defined(HAVE_EVP_MD_CTX_INIT)
+#if !defined(HAVE_HMAC_CTX_INIT)
 void HMAC_CTX_init(HMAC_CTX *ctx);
 #endif
 
@@ -133,8 +133,11 @@
 #define OPENSSL_cleanse(p, l) memset(p, 0, l)
 #endif
 
+#if !defined(HAVE_X509_STORE_GET_EX_DATA)
+void *X509_STORE_get_ex_data(X509_STORE *str, int idx);
+#endif
+
 #if !defined(HAVE_X509_STORE_SET_EX_DATA)
-void *X509_STORE_get_ex_data(X509_STORE *str, int idx);
 int X509_STORE_set_ex_data(X509_STORE *str, int idx, void *data);
 #endif
 

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

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