mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Claim a commonname of Tor, rather than TOR, in tls handshakes.
Maybe this will help us win the war of names. svn:r6489
This commit is contained in:
parent
be2833e929
commit
67a885ecac
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user