*/
X509_NAME_add_entry_by_txt(name, "O",
- MBSTRING_ASC, config.c_humannode, -1, -1, 0);
+ MBSTRING_ASC,
+ (unsigned char*) config.c_humannode,
+ -1, -1, 0);
X509_NAME_add_entry_by_txt(name, "OU",
- MBSTRING_ASC, "Citadel server", -1, -1, 0);
+ MBSTRING_ASC,
+ (unsigned const char*)"Citadel server",
+ -1, -1, 0);
/* X509_NAME_add_entry_by_txt(name, "CN",
MBSTRING_ASC, config.c_fqdn, -1, -1, 0);
*/
- X509_NAME_add_entry_by_txt(name, "CN",
- MBSTRING_ASC, "*", -1, -1, 0);
+ X509_NAME_add_entry_by_txt(name,
+ "CN",
+ MBSTRING_ASC,
+ (const unsigned char *)"*", -1, -1, 0);
X509_REQ_set_subject_name(req, name);
/*
* client_write_ssl() Send binary data to the client encrypted.
*/
-void client_write_ssl(char *buf, int nbytes)
+void client_write_ssl(const char *buf, int nbytes)
{
int retval;
int nremain;