aboutsummaryrefslogtreecommitdiff
path: root/src/common/tortls.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-10-14 02:48:57 +0000
committerRoger Dingledine <arma@torproject.org>2004-10-14 02:48:57 +0000
commit5f4a390b337ab04da488d21ecc689a15da496d55 (patch)
treeb715d805a74c962f313ee3db5bcb81ad1b0878c1 /src/common/tortls.c
parentaebc3a03ba6eea02f4d50fa4bd5dbf49cd37a0c7 (diff)
downloadtor-5f4a390b337ab04da488d21ecc689a15da496d55.tar
tor-5f4a390b337ab04da488d21ecc689a15da496d55.tar.gz
oh, and some more in common/
svn:r2483
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r--src/common/tortls.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index c685c1280..8a4dccaa2 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -50,7 +50,7 @@ struct tor_tls_st {
} state; /**< The current SSL state, depending on which operations have
* completed successfully. */
int isServer;
- int wantwrite_n; /**< 0 normally, >0 if we returned wantwrite last time. */
+ size_t wantwrite_n; /**< 0 normally, >0 if we returned wantwrite last time. */
};
static X509* tor_tls_create_certificate(crypto_pk_env_t *rsa,
@@ -429,7 +429,7 @@ tor_tls_free(tor_tls *tls)
* TOR_TLS_CLOSE, TOR_TLS_WANTREAD, or TOR_TLS_WANTWRITE.
*/
int
-tor_tls_read(tor_tls *tls, char *cp, int len)
+tor_tls_read(tor_tls *tls, char *cp, size_t len)
{
int r, err;
tor_assert(tls && tls->ssl);
@@ -454,7 +454,7 @@ tor_tls_read(tor_tls *tls, char *cp, int len)
* TOR_TLS_WANTREAD, or TOR_TLS_WANTWRITE.
*/
int
-tor_tls_write(tor_tls *tls, char *cp, int n)
+tor_tls_write(tor_tls *tls, char *cp, size_t n)
{
int r, err;
tor_assert(tls && tls->ssl);
@@ -580,7 +580,7 @@ tor_tls_peer_has_cert(tor_tls *tls)
* claims to have.
*/
int
-tor_tls_get_peer_cert_nickname(tor_tls *tls, char *buf, int buflen)
+tor_tls_get_peer_cert_nickname(tor_tls *tls, char *buf, size_t buflen)
{
X509 *cert = NULL;
X509_NAME *name = NULL;