Re: tiny patch

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Applied

Thanks

2011/6/15 Jason Yanowitz <[email protected]>:
> 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
> _______________________________________________
> FreeTDS mailing list
> [email protected]
> http://lists.ibiblio.org/mailman/listinfo/freetds
>
_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.