*/
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;
#ifdef HAVE_OPENSSL
void destruct_ssl(void);
void init_ssl(void);
-void client_write_ssl (char *buf, int nbytes);
+void client_write_ssl (const char *buf, int nbytes);
int client_read_ssl (char *buf, int bytes, int timeout);
void cmd_stls(char *params);
void cmd_gtls(char *params);
void buffer_output(void);
void unbuffer_output(void);
void flush_output(void);
-int client_write (char *buf, int nbytes);
+int client_write (const char *buf, int nbytes);
int client_read_to (char *buf, int bytes, int timeout);
int client_read (char *buf, int bytes);
int client_getln (char *buf, int maxbytes);