diff options
author | Robert Ransom <rransom.8774@gmail.com> | 2010-10-01 14:06:57 -0700 |
---|---|---|
committer | Robert Ransom <rransom.8774@gmail.com> | 2010-10-04 17:57:29 -0700 |
commit | d3879dbd16ccc7b6bc8393f92343f8669f8e0dc4 (patch) | |
tree | b06e23d4df5cbfeaca04ef4c064db52edf148074 /src/common/tortls.h | |
parent | 89dffade8da372e296ae2d564dda102e9a7d566b (diff) | |
download | tor-d3879dbd16ccc7b6bc8393f92343f8669f8e0dc4.tar.gz tor-d3879dbd16ccc7b6bc8393f92343f8669f8e0dc4.zip |
Refactor tor_tls_context_new:
* Make tor_tls_context_new internal to tortls.c, and return the new
tor_tls_context_t from it.
* Add a public tor_tls_context_init wrapper function to replace it.
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r-- | src/common/tortls.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h index e4b1ad65f2..40382667bf 100644 --- a/src/common/tortls.h +++ b/src/common/tortls.h @@ -50,7 +50,8 @@ typedef struct tor_tls_t tor_tls_t; const char *tor_tls_err_to_string(int err); void tor_tls_free_all(void); -int tor_tls_context_new(crypto_pk_env_t *rsa, unsigned int key_lifetime); +int tor_tls_context_init(crypto_pk_env_t *identity, + unsigned int key_lifetime); tor_tls_t *tor_tls_new(int sock, int is_server); void tor_tls_set_logged_address(tor_tls_t *tls, const char *address); void tor_tls_set_renegotiate_callback(tor_tls_t *tls, |