summaryrefslogtreecommitdiff
path: root/src/common/tortls.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-05-10 10:27:54 +0000
committerRoger Dingledine <arma@torproject.org>2004-05-10 10:27:54 +0000
commit3cdf2d67da5f2cd3529ffec9907fa910c0b0208c (patch)
tree812a91531b2e0c1b097ff8ac982017a7907ac7c6 /src/common/tortls.c
parent07871a8a2c3fc4f6a290961dc371b6e8d44ed69a (diff)
downloadtor-3cdf2d67da5f2cd3529ffec9907fa910c0b0208c.tar.gz
tor-3cdf2d67da5f2cd3529ffec9907fa910c0b0208c.zip
it's amazing what a bit of punctuation can do for appearances
svn:r1843
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r--src/common/tortls.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 25896c6896..8dc160702c 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -38,18 +38,18 @@ typedef struct tor_tls_context_st {
} tor_tls_context;
/** Holds a SSL object and its associated data. Members are only
- * accessed from within tortls.c
+ * accessed from within tortls.c.
*/
struct tor_tls_st {
- SSL *ssl; /**< An OpenSSL SSL object */
- int socket; /**< The underlying file descriptor for this TLS connection */
+ SSL *ssl; /**< An OpenSSL SSL object. */
+ int socket; /**< The underlying file descriptor for this TLS connection. */
enum {
TOR_TLS_ST_HANDSHAKE, TOR_TLS_ST_OPEN, TOR_TLS_ST_GOTCLOSE,
TOR_TLS_ST_SENTCLOSE, TOR_TLS_ST_CLOSED
} 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 */
+ int wantwrite_n; /**< 0 normally, >0 if we returned wantwrite last time. */
};
static X509* tor_tls_create_certificate(crypto_pk_env_t *rsa,
@@ -59,7 +59,7 @@ static X509* tor_tls_create_certificate(crypto_pk_env_t *rsa,
unsigned int lifetime);
/** Global tls context. We keep it here because nobody else needs to
- * touch it */
+ * touch it. */
static tor_tls_context *global_tls_context = NULL;
/** True iff tor_tls_init() has been called. */
static int tls_library_is_initialized = 0;