summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret2013-04-03 04:40:37 (EDT)
committerDidier Brachet2013-04-03 05:07:24 (EDT)
commit15d6464dccbd7c835018ea93ee8976f4d27d18e4 (patch)
treebe06fb5a088ee4a8c6cbce3e0bded57341bac1d4
parent9933db012eb892c2db0e14bf145269a85fd5a6f6 (diff)
downloadorg.eclipse.tcf.agent-15d6464dccbd7c835018ea93ee8976f4d27d18e4.zip
org.eclipse.tcf.agent-15d6464dccbd7c835018ea93ee8976f4d27d18e4.tar.gz
org.eclipse.tcf.agent-15d6464dccbd7c835018ea93ee8976f4d27d18e4.tar.bz2
TCF Agent - Bug 404785 - Fix compilation warning with gcc 4.6.3
-rw-r--r--agent/tcf/framework/channel_tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/agent/tcf/framework/channel_tcp.c b/agent/tcf/framework/channel_tcp.c
index 7b8bb4a..c3808f2 100644
--- a/agent/tcf/framework/channel_tcp.c
+++ b/agent/tcf/framework/channel_tcp.c
@@ -1491,10 +1491,10 @@ void generate_ssl_certificate(void) {
X509_gmtime_adj(X509_get_notBefore(cert), 0L);
X509_gmtime_adj(X509_get_notAfter(cert), 60 * 60 * 24 * 365L * 10L);
name = X509_get_subject_name(cert);
- X509_NAME_add_entry_by_txt(name, "commonName", MBSTRING_ASC,
+ X509_NAME_add_entry_by_txt(name, (char *) "commonName", MBSTRING_ASC,
(unsigned char *)subject_name, strlen(subject_name), -1, 0);
name = X509_get_issuer_name(cert);
- X509_NAME_add_entry_by_txt(name, "commonName", MBSTRING_ASC,
+ X509_NAME_add_entry_by_txt(name, (char *) "commonName", MBSTRING_ASC,
(unsigned char *)issuer_name, strlen(issuer_name), -1, 0);
}
if (!err && !X509_set_pubkey(cert, rsa_key)) err = set_ssl_errno();