FreeBSD Bugzilla – Attachment 201240 Details for
Bug 232309
[PATCH] net/socketw : Fix build on OpenSSL > 1.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix build with openssl
socketw-3.10.26.20180918.diff (text/plain), 2.51 KB, created by
Thibault Payet
on 2019-01-18 16:02:12 UTC
(
hide
)
Description:
fix build with openssl
Filename:
MIME Type:
Creator:
Thibault Payet
Created:
2019-01-18 16:02:12 UTC
Size:
2.51 KB
patch
obsolete
>Index: files/patch-src_sw__ssl.cxx >=================================================================== >--- files/patch-src_sw__ssl.cxx (nonexistent) >+++ files/patch-src_sw__ssl.cxx (copie de travail) >@@ -0,0 +1,58 @@ >+--- src/sw_ssl.cxx.orig 2019-01-18 15:35:27 UTC >++++ src/sw_ssl.cxx >+@@ -4,7 +4,7 @@ >+ // Started 020316 >+ // >+ // License: LGPL v2.1+ (see the file LICENSE) >+-// (c)2002-2003 Anders Lindström >++// (c)2002-2003 Anders Lindstr?m >+ >+ /*********************************************************************** >+ * This library is free software; you can redistribute it and/or * >+@@ -22,6 +22,8 @@ >+ #include <openssl/x509.h> >+ #include <openssl/rsa.h> >+ #include <openssl/evp.h> >++#include <openssl/dh.h> >++#include <cstring> >+ >+ using namespace std; >+ >+@@ -557,7 +559,8 @@ bool SWSSLSocket::get_peerCert_info(SWSSLSocket::peerC >+ info->version = X509_get_version(peer); >+ >+ // Signature algorithm >+- int nid = OBJ_obj2nid(peer->sig_alg->algorithm); >++ >++ int nid = X509_get_signature_nid(peer); >+ if( nid != NID_undef ) >+ info->sgnAlgorithm = OBJ_nid2sn(nid); >+ else >+@@ -566,7 +569,7 @@ bool SWSSLSocket::get_peerCert_info(SWSSLSocket::peerC >+ // Key algorithm >+ EVP_PKEY *pkey = X509_get_pubkey(peer); >+ if( pkey ){ >+- info->keyAlgorithm = OBJ_nid2sn(pkey->type); >++ info->keyAlgorithm = X509_certificate_type(peer, pkey); >+ info->keySize = 8 * EVP_PKEY_size(pkey); >+ }else{ >+ info->keyAlgorithm = ""; >+@@ -689,7 +692,8 @@ bool SWSSLSocket::check_cert(SWBaseError *error) >+ } >+ } >+ >+- if( !(cert = BuildCertificate("SocketW session cert", NULL, NULL, evp_pkey)) ){ >++ char certificateName[22] = "SocketW session cert\0"; >++ if( !(cert = BuildCertificate(certificateName, NULL, NULL, evp_pkey)) ){ >+ handle_ERRerror(error, fatal, "SWSSLSocket::handle_crypto_data() "); >+ return false; >+ } >+@@ -718,7 +722,7 @@ SWBaseSocket* SWSSLSocket::create(int socketdescriptor >+ // Copy CTX object pointer >+ remoteClass->ctx = ctx; >+ if( ctx ) >+- ctx->references++; // We don't want our destructor to delete ctx if still in use >++ SSL_CTX_up_ref(ctx); >+ >+ remoteClass->have_cert = have_cert; // Do CTX have cert loaded? >+ > >Property changes on: files/patch-src_sw__ssl.cxx >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
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
Flags:
monwarez
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 232309
:
200135
|
201240
|
201257
|
201258
|
201335