Fix examples to use new API and lots of compiler warnings.

This commit is contained in:
Jack Moffitt
2008-07-02 23:17:27 +00:00
parent 65a174ee7e
commit 9c49b16554
22 changed files with 197 additions and 71 deletions

View File

@@ -44,7 +44,7 @@ tls_t *tls_new(xmpp_ctx_t *ctx, sock_t sock)
void tls_free(tls_t *tls)
{
return
return;
}
int tls_set_credentials(tls_t *tls, const char *cafilename)
@@ -77,3 +77,13 @@ int tls_write(tls_t *tls, const void * const buff, const size_t len)
{
return -1;
}
int tls_clear_pending_write(tls_t *tls)
{
return -1;
}
int tls_is_recoverable(int error)
{
return 0;
}