/* This function needs to check if the ciphers required are actually
* available */
SSL_CIPHER *ssl2_get_cipher_by_char(p)
-unsigned char *p;
+const unsigned char *p;
{
static int init=1;
static SSL_CIPHER *sorted[SSL2_NUM_CIPHERS];
}
int ssl2_put_cipher_by_char(c,p)
-SSL_CIPHER *c;
+const SSL_CIPHER *c;
unsigned char *p;
{
long l;
#ifndef NOPROTO
static int read_n(SSL *s,unsigned int n,unsigned int max,unsigned int extend);
-static int do_ssl_write(SSL *s, char *buf, unsigned int len);
-static int write_pending(SSL *s, char *buf, unsigned int len);
+static int do_ssl_write(SSL *s, const char *buf, unsigned int len);
+static int write_pending(SSL *s, const char *buf, unsigned int len);
static int ssl_mt_error(int n);
#else
static int read_n();
int ssl2_write(s, buf, len)
SSL *s;
-char *buf;
+const char *buf;
int len;
{
unsigned int n,tot;
static int write_pending(s,buf,len)
SSL *s;
-char *buf;
+const char *buf;
unsigned int len;
{
int i;
static int do_ssl_write(s, buf, len)
SSL *s;
-char *buf;
+const char *buf;
unsigned int len;
{
unsigned int j,k,olen,p,mac_size,bs;
/* This function needs to check if the ciphers required are actually
* available */
SSL_CIPHER *ssl3_get_cipher_by_char(p)
-unsigned char *p;
+const unsigned char *p;
{
static int init=1;
static SSL_CIPHER *sorted[SSL3_NUM_CIPHERS];
}
int ssl3_put_cipher_by_char(c,p)
-SSL_CIPHER *c;
+const SSL_CIPHER *c;
unsigned char *p;
{
long l;
int ssl3_write(s,buf,len)
SSL *s;
-char *buf;
+const char *buf;
int len;
{
int ret,n;