Skip to Content.
Sympa Menu

freetds - [freetds] tiny patch

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Jason Yanowitz <jyanowitz AT groupon.com>
  • To: FreeTDS AT lists.ibiblio.org
  • Subject: [freetds] tiny patch
  • Date: Wed, 15 Jun 2011 13:52:23 -0500

I think this is the right place to send this.

I was compiling freetds-0.92.dev.20110612 with openssl and getting a compile
time error of

net.c: In function ‘tds_write_packet’:
net.c:744: error: ‘TDSSOCKET’ has no member named ‘tls_session’

The attached patch is the solution.

Cheers,
Jason


> *** freetds-0.92.dev.20110612/src/tds/net.c 2011-06-10 12:51:44.000000000
> -0500
> --- freetds-0.92.dev.20110612.new/src/tds/net.c 2011-06-15
> 11:58:17.000000000 -0500
> ***************
> *** 741,747 ****
> sent = gnutls_record_send(tds_conn(tds)->tls_session,
> tds->out_buf, tds->out_pos);
> else
> #elif defined(HAVE_OPENSSL)
> ! if (tds->tls_session)
> sent = SSL_write((SSL*) tds_conn(tds)->tls_session,
> tds->out_buf, tds->out_pos);
> else
> #endif
> --- 741,747 ----
> sent = gnutls_record_send(tds_conn(tds)->tls_session,
> tds->out_buf, tds->out_pos);
> else
> #elif defined(HAVE_OPENSSL)
> ! if (tds_conn(tds)->tls_session)
> sent = SSL_write((SSL*) tds_conn(tds)->tls_session,
> tds->out_buf, tds->out_pos);
> else
> #endif




Archive powered by MHonArc 2.6.24.

Top of Page