projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More prototypes.
[openssl.git]
/
ssl
/
s2_lib.c
diff --git
a/ssl/s2_lib.c
b/ssl/s2_lib.c
index 172fc361cf18ae87c349ef62262e24977207722b..12b8458a584c4603e1903e348a8aeffcf88f22d7 100644
(file)
--- a/
ssl/s2_lib.c
+++ b/
ssl/s2_lib.c
@@
-67,7
+67,7
@@
static long ssl2_default_timeout(void );
static long ssl2_default_timeout();
#endif
static long ssl2_default_timeout();
#endif
-char *ssl2_version_str="SSLv2 part of
SSLeay 0.9.1a 06-Jul
-1998";
+char *ssl2_version_str="SSLv2 part of
OpenSSL 0.9.2 31-Dec
-1998";
#define SSL2_NUM_CIPHERS (sizeof(ssl2_ciphers)/sizeof(SSL_CIPHER))
#define SSL2_NUM_CIPHERS (sizeof(ssl2_ciphers)/sizeof(SSL_CIPHER))
@@
-257,6
+257,9
@@
SSL *s;
{
SSL2_CTX *s2;
{
SSL2_CTX *s2;
+ if(s == NULL)
+ return;
+
s2=s->s2;
if (s2->rbuf != NULL) Free(s2->rbuf);
if (s2->wbuf != NULL) Free(s2->wbuf);
s2=s->s2;
if (s2->rbuf != NULL) Free(s2->rbuf);
if (s2->wbuf != NULL) Free(s2->wbuf);
@@
-317,7
+320,7
@@
char *parg;
/* This function needs to check if the ciphers required are actually
* available */
SSL_CIPHER *ssl2_get_cipher_by_char(p)
/* 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];
{
static int init=1;
static SSL_CIPHER *sorted[SSL2_NUM_CIPHERS];
@@
-351,7
+354,7
@@
unsigned char *p;
}
int ssl2_put_cipher_by_char(c,p)
}
int ssl2_put_cipher_by_char(c,p)
-SSL_CIPHER *c;
+
const
SSL_CIPHER *c;
unsigned char *p;
{
long l;
unsigned char *p;
{
long l;