Upgrading openssl to latest released version 0.9.5
there are no major fixes in here but couple of bug fixes that may affect operation in some cases. I updated rename.h to make sure all symbols with T have dst__openssl prefix. Any bugs found in this source code should be reported to the openssl people. Olafur
This commit is contained in:
@@ -163,7 +163,7 @@ void lh_free(LHASH *lh)
|
||||
unsigned int i;
|
||||
LHASH_NODE *n,*nn;
|
||||
|
||||
if(lh == NULL)
|
||||
if (lh == NULL)
|
||||
return;
|
||||
|
||||
for (i=0; i<lh->num_nodes; i++)
|
||||
@@ -426,21 +426,6 @@ static LHASH_NODE **getrn(LHASH *lh, void *data, unsigned long *rhash)
|
||||
return(ret);
|
||||
}
|
||||
|
||||
/*
|
||||
unsigned long lh_strhash(char *str)
|
||||
{
|
||||
int i,l;
|
||||
unsigned long ret=0;
|
||||
unsigned short *s;
|
||||
|
||||
if (str == NULL) return(0);
|
||||
l=(strlen(str)+1)/2;
|
||||
s=(unsigned short *)str;
|
||||
for (i=0; i<l; i++)
|
||||
ret^=(s[i]<<(i&0x0f));
|
||||
return(ret);
|
||||
} */
|
||||
|
||||
/* The following hash seems to work very well on normal text strings
|
||||
* no collisions on /usr/dict/words and it distributes on %2^n quite
|
||||
* well, not as good as MD5, but still good.
|
||||
@@ -474,3 +459,7 @@ unsigned long lh_strhash(const char *c)
|
||||
return((ret>>16)^ret);
|
||||
}
|
||||
|
||||
unsigned long lh_num_items(LHASH *lh)
|
||||
{
|
||||
return lh ? lh->num_items : 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user