diff options
author | Roger Dingledine <arma@torproject.org> | 2003-09-08 06:22:19 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-09-08 06:22:19 +0000 |
commit | ace475f01cf8fd6f2cd95e61c08b43d8296e2c88 (patch) | |
tree | 1bda1f9906cbafa3f7b0762b58610280e524ae04 /src/common/tortls.h | |
parent | 413c7a19edac25e3bbed1973008a63ca13f15b5d (diff) | |
download | tor-ace475f01cf8fd6f2cd95e61c08b43d8296e2c88.tar.gz tor-ace475f01cf8fd6f2cd95e61c08b43d8296e2c88.zip |
hide the global tls context inside tortls.c
svn:r431
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r-- | src/common/tortls.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h index fa1b72f205..3cd9ea337c 100644 --- a/src/common/tortls.h +++ b/src/common/tortls.h @@ -17,8 +17,8 @@ typedef struct tor_tls_st tor_tls; #define TOR_TLS_DONE 0 int tor_tls_write_certificate(char *certfile, crypto_pk_env_t *rsa, char *nickname); -tor_tls_context *tor_tls_context_new(char *certfile, crypto_pk_env_t *rsa, int isServer); -tor_tls *tor_tls_new(tor_tls_context *ctx, int sock, int isServer); +int tor_tls_context_new(char *certfile, crypto_pk_env_t *rsa, int isServer); +tor_tls *tor_tls_new(int sock, int isServer); void tor_tls_free(tor_tls *tls); int tor_tls_read(tor_tls *tls, char *cp, int len); int tor_tls_write(tor_tls *tls, char *cp, int n); |