From 67a885ecacf076dc439a0ac9024f2de18f0d6e94 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 24 May 2006 00:21:55 +0000 Subject: Claim a commonname of Tor, rather than TOR, in tls handshakes. Maybe this will help us win the war of names. svn:r6489 --- src/common/tortls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/tortls.c') diff --git a/src/common/tortls.c b/src/common/tortls.c index 2acbcbb57d..a20414267e 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -234,7 +234,7 @@ tor_tls_create_certificate(crypto_pk_env_t *rsa, if ((nid = OBJ_txt2nid("organizationName")) == NID_undef) goto error; if (!(X509_NAME_add_entry_by_NID(name, nid, MBSTRING_ASC, - (unsigned char*)"TOR", -1, -1, 0))) + (unsigned char*)"Tor", -1, -1, 0))) goto error; if ((nid = OBJ_txt2nid("commonName")) == NID_undef) goto error; if (!(X509_NAME_add_entry_by_NID(name, nid, MBSTRING_ASC, @@ -248,7 +248,7 @@ tor_tls_create_certificate(crypto_pk_env_t *rsa, if ((nid = OBJ_txt2nid("organizationName")) == NID_undef) goto error; if (!(X509_NAME_add_entry_by_NID(name_issuer, nid, MBSTRING_ASC, - (unsigned char*)"TOR", -1, -1, 0))) + (unsigned char*)"Tor", -1, -1, 0))) goto error; if ((nid = OBJ_txt2nid("commonName")) == NID_undef) goto error; if (!(X509_NAME_add_entry_by_NID(name_issuer, nid, MBSTRING_ASC, -- cgit v1.2.3-54-g00ecf