diff options
author | Roger Dingledine <arma@torproject.org> | 2004-10-14 02:48:57 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-10-14 02:48:57 +0000 |
commit | 5f4a390b337ab04da488d21ecc689a15da496d55 (patch) | |
tree | b715d805a74c962f313ee3db5bcb81ad1b0878c1 /src/common/tortls.h | |
parent | aebc3a03ba6eea02f4d50fa4bd5dbf49cd37a0c7 (diff) | |
download | tor-5f4a390b337ab04da488d21ecc689a15da496d55.tar.gz tor-5f4a390b337ab04da488d21ecc689a15da496d55.zip |
oh, and some more in common/
svn:r2483
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r-- | src/common/tortls.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h index 3346a878e2..9b7e24d7f9 100644 --- a/src/common/tortls.h +++ b/src/common/tortls.h @@ -27,10 +27,10 @@ int tor_tls_context_new(crypto_pk_env_t *rsa, int isServer, tor_tls *tor_tls_new(int sock, int is_server, int use_no_cert); void tor_tls_free(tor_tls *tls); int tor_tls_peer_has_cert(tor_tls *tls); -int tor_tls_get_peer_cert_nickname(tor_tls *tls, char *buf, int buflen); +int tor_tls_get_peer_cert_nickname(tor_tls *tls, char *buf, size_t buflen); int tor_tls_verify(tor_tls *tls, crypto_pk_env_t **identity); -int tor_tls_read(tor_tls *tls, char *cp, int len); -int tor_tls_write(tor_tls *tls, char *cp, int n); +int tor_tls_read(tor_tls *tls, char *cp, size_t len); +int tor_tls_write(tor_tls *tls, char *cp, size_t n); int tor_tls_handshake(tor_tls *tls); int tor_tls_shutdown(tor_tls *tls); int tor_tls_get_pending_bytes(tor_tls *tls); |