Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 663109 Details for
Bug 657720
[libressl overlay] app-crypt/qca-2.3.0: libressl support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
qca-9999-libressl.patch
qca-9999-libressl.patch (text/plain), 2.83 KB, created by
jospezial
on 2020-09-29 10:42:56 UTC
(
hide
)
Description:
qca-9999-libressl.patch
Filename:
MIME Type:
Creator:
jospezial
Created:
2020-09-29 10:42:56 UTC
Size:
2.83 KB
patch
obsolete
>diff --git a/plugins/qca-ossl/qca-ossl.cpp b/plugins/qca-ossl/qca-ossl.cpp >index ac3f4b24..ca6b4757 100644 >--- a/plugins/qca-ossl/qca-ossl.cpp >+++ b/plugins/qca-ossl/qca-ossl.cpp >@@ -41,7 +41,13 @@ > #include <openssl/ssl.h> > #include <openssl/x509v3.h> > >+#ifndef RSA_F_RSA_OSSL_PRIVATE_DECRYPT >+#define RSA_F_RSA_OSSL_PRIVATE_DECRYPT RSA_F_RSA_EAY_PRIVATE_DECRYPT >+#endif >+ >+#ifndef LIBRESSL_VERSION_NUMBER > #include <openssl/kdf.h> >+#endif > > using namespace QCA; > >@@ -1239,6 +1245,7 @@ public: > protected: > }; > >+#ifndef LIBRESSL_VERSION_NUMBER > class opensslHkdfContext : public HKDFContext > { > Q_OBJECT >@@ -1271,6 +1278,7 @@ public: > return out; > } > }; >+#endif // LIBRESSL_VERSION_NUMBER > > class opensslHMACContext : public MACContext > { >@@ -4951,7 +4959,11 @@ public: > case TLS::TLS_v1: > ctx = SSL_CTX_new(TLS_client_method()); > SSL_CTX_set_min_proto_version(ctx, TLS1_VERSION); >+#ifdef TLS1_3_VERSION > SSL_CTX_set_max_proto_version(ctx, TLS1_3_VERSION); >+#else >+ SSL_CTX_set_max_proto_version(ctx, TLS1_2_VERSION); >+#endif > break; > case TLS::DTLS_v1: > default: >@@ -4972,7 +4984,11 @@ public: > QStringList cipherList; > for (int i = 0; i < sk_SSL_CIPHER_num(sk); ++i) { > const SSL_CIPHER *thisCipher = sk_SSL_CIPHER_value(sk, i); >+#ifndef LIBRESSL_VERSION_NUMBER > cipherList += QString::fromLatin1(SSL_CIPHER_standard_name(thisCipher)); >+#else >+ cipherList += QString::fromLatin1(SSL_CIPHER_get_name(thisCipher)); >+#endif > } > sk_SSL_CIPHER_free(sk); > >@@ -5345,7 +5361,11 @@ public: > sessInfo.version = TLS::TLS_v1; > } > >+#ifndef LIBRESSL_VERSION_NUMBER > sessInfo.cipherSuite = QString::fromLatin1(SSL_CIPHER_standard_name(SSL_get_current_cipher(ssl))); >+#else >+ sessInfo.cipherSuite = QString::fromLatin1(SSL_CIPHER_get_name(SSL_get_current_cipher(ssl))); >+#endif > > sessInfo.cipherMaxBits = SSL_get_cipher_bits(ssl, &(sessInfo.cipherBits)); > >@@ -6629,7 +6649,9 @@ public: > #endif > list += QStringLiteral("pbkdf1(sha1)"); > list += QStringLiteral("pbkdf2(sha1)"); >+#ifndef LIBRESSL_VERSION_NUMBER > list += QStringLiteral("hkdf(sha256)"); >+#endif > list += QStringLiteral("pkey"); > list += QStringLiteral("dlgroup"); > list += QStringLiteral("rsa"); >@@ -6698,8 +6720,10 @@ public: > #endif > else if (type == QLatin1String("pbkdf2(sha1)")) > return new opensslPbkdf2Context(this, type); >+#ifndef LIBRESSL_VERSION_NUMBER > else if (type == QLatin1String("hkdf(sha256)")) > return new opensslHkdfContext(this, type); >+#endif > else if (type == QLatin1String("hmac(md5)")) > return new opensslHMACContext(EVP_md5(), this, type); > else if (type == QLatin1String("hmac(sha1)"))
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 657720
:
535490
|
535492
|
535494
|
535496
|
535498
|
535500
|
535502
|
558122
|
614472
| 663109