diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-04-24 22:17:50 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-04-24 22:17:50 +0000 |
commit | c44016e86ec8dfd9147b2ca58e5277cb03a92561 (patch) | |
tree | 98002278cf00e6c9373e96deb245e6661f890b8d /src/common/tortls.h | |
parent | 83081f5ad6fd3fd4450ce4f5a84c2873f5c4123b (diff) | |
download | tor-c44016e86ec8dfd9147b2ca58e5277cb03a92561.tar.gz tor-c44016e86ec8dfd9147b2ca58e5277cb03a92561.zip |
Merge flagday into main branch.
svn:r1683
Diffstat (limited to 'src/common/tortls.h')
-rw-r--r-- | src/common/tortls.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/tortls.h b/src/common/tortls.h index d9e326e55c..da22454f2e 100644 --- a/src/common/tortls.h +++ b/src/common/tortls.h @@ -17,12 +17,13 @@ typedef struct tor_tls_st tor_tls; #define TOR_TLS_DONE 0 /* X509* tor_tls_write_certificate(char *certfile, crypto_pk_env_t *rsa, char *nickname); */ -int tor_tls_context_new(crypto_pk_env_t *rsa, int isServer, const char *nickname); +int tor_tls_context_new(crypto_pk_env_t *rsa, int isServer, + const char *nickname, unsigned int key_lifetime); tor_tls *tor_tls_new(int sock, int isServer); 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); -crypto_pk_env_t *tor_tls_verify(tor_tls *tls); +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_handshake(tor_tls *tls); |