~ubuntu-branches/ubuntu/quantal/freerdp/quantal

« back to all changes in this revision

Viewing changes to libfreerdp/tls.c

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador
  • Date: 2010-11-13 10:58:11 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20101113105811-969nn7e2073rh30n
Tags: 0.8.2-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
        return ctx;
214
214
}
215
215
 
 
216
void
 
217
tls_destroy_context(SSL_CTX *ctx)
 
218
{
 
219
        SSL_CTX_free(ctx);
 
220
}
 
221
 
216
222
/* Initiate TLS handshake on socket */
217
223
SSL*
218
224
tls_connect(SSL_CTX *ctx, int sockfd, char *server)
266
272
        while (True)
267
273
        {
268
274
                ret = SSL_shutdown(ssl);
269
 
                if (ret > 0)
 
275
                if (ret >= 0)
270
276
                        break;
271
277
                if (tls_printf("ssl_disconnect", ssl, ret))
272
278
                        break;