diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-27 21:14:11 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-27 21:14:11 +0000 |
commit | 2fbf31533ba595c3c0ba6a0c1349208fbdfb498a (patch) | |
tree | 226089a8ad38086deea48477c9484a7b72e574b8 /src/common/tortls.c | |
parent | ce5709184bef665a545bcbf207598ad0f991a67b (diff) | |
download | tor-2fbf31533ba595c3c0ba6a0c1349208fbdfb498a.tar tor-2fbf31533ba595c3c0ba6a0c1349208fbdfb498a.tar.gz |
Tricksy compiler warnings! We hates them, hates them forever, my precious!
svn:r2615
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r-- | src/common/tortls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index eaef6468b..051b9887d 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -210,7 +210,7 @@ tor_tls_create_certificate(crypto_pk_env_t *rsa, goto error; if ((nid = OBJ_txt2nid("organizationName")) == NID_undef) goto error; if (!(X509_NAME_add_entry_by_NID(name, nid, MBSTRING_ASC, - "TOR", -1, -1, 0))) goto error; + (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, (char*)cname, -1, -1, 0))) goto error; @@ -221,7 +221,7 @@ tor_tls_create_certificate(crypto_pk_env_t *rsa, goto error; if ((nid = OBJ_txt2nid("organizationName")) == NID_undef) goto error; if (!(X509_NAME_add_entry_by_NID(name_issuer, nid, MBSTRING_ASC, - "TOR", -1, -1, 0))) goto error; + (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, (char*)cname_sign, -1, -1, 0))) goto error; |