Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 559432 Details for
Bug 673968
sci-libs/tensorflow-1.12.0 with dev-libs/openssl-1.1.0j - tensorflow/core/platform/cloud/oauth_client.cc:122:3: error: 'EVP_MD_CTX_cleanup' was not declared in this scope
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
tensorflow-1.12-openssl-1.1.patch
tensorflow-1.12-openssl-1.1.patch (text/plain), 1.83 KB, created by
LE GARREC Vincent
on 2019-01-02 06:38:53 UTC
(
hide
)
Description:
tensorflow-1.12-openssl-1.1.patch
Filename:
MIME Type:
Creator:
LE GARREC Vincent
Created:
2019-01-02 06:38:53 UTC
Size:
1.83 KB
patch
obsolete
>--- tensorflow-1.12.0/tensorflow/core/platform/cloud/oauth_client.cc.old 2019-01-01 16:14:58.444432721 +0100 >+++ tensorflow-1.12.0/tensorflow/core/platform/cloud/oauth_client.cc 2019-01-01 16:18:22.886812378 +0100 >@@ -31,6 +31,14 @@ limitations under the License. > #include "tensorflow/core/platform/cloud/curl_http_request.h" > #include "tensorflow/core/platform/env.h" > >+#if OPENSSL_VERSION_NUMBER < 0x10100000L >+static void EVP_MD_CTX_free(EVP_MD_CTX *ctx) >+{ >+ EVP_MD_CTX_cleanup(ctx); >+ OPENSSL_free(ctx); >+} >+#endif >+ > namespace tensorflow { > > namespace { >@@ -119,7 +127,7 @@ Status CreateSignature(RSA* private_key, > if (EVP_DigestSignFinal(md_ctx.get(), sig.get(), &sig_len) != 1) { > return errors::Internal("DigestFinal (signature compute) failed."); > } >- EVP_MD_CTX_cleanup(md_ctx.get()); >+ EVP_MD_CTX_free(md_ctx.get()); > return Base64Encode(StringPiece(reinterpret_cast<char*>(sig.get()), sig_len), > signature); > } >--- tensorflow-1.12.0/tensorflow/core/platform/cloud/oauth_client_test.cc.old 2019-01-01 16:15:12.794611041 +0100 >+++ tensorflow-1.12.0/tensorflow/core/platform/cloud/oauth_client_test.cc 2019-01-01 16:18:36.246958623 +0100 >@@ -26,6 +26,14 @@ limitations under the License. > #include "tensorflow/core/platform/env.h" > #include "tensorflow/core/platform/test.h" > >+#if OPENSSL_VERSION_NUMBER < 0x10100000L >+static void EVP_MD_CTX_free(EVP_MD_CTX *ctx) >+{ >+ EVP_MD_CTX_cleanup(ctx); >+ OPENSSL_free(ctx); >+} >+#endif >+ > namespace tensorflow { > namespace { > >@@ -166,7 +174,7 @@ TEST(OAuthClientTest, GetTokenFromServic > const_cast<unsigned char*>( > reinterpret_cast<const unsigned char*>(signature.data())), > signature.size())); >- EVP_MD_CTX_cleanup(md_ctx); >+ EVP_MD_CTX_free(md_ctx); > > // Free all the crypto-related resources. > EVP_PKEY_free(key);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 673968
:
558786
|
559374
| 559432