Type-checked (and modern C compliant) OBJ_bsearch.

This commit is contained in:
Ben Laurie
2008-10-12 14:32:47 +00:00
parent 6665ef303e
commit babb379849
42 changed files with 424 additions and 351 deletions

View File

@@ -74,7 +74,7 @@ int ssl23_num_ciphers(void)
);
}
SSL_CIPHER *ssl23_get_cipher(unsigned int u)
const SSL_CIPHER *ssl23_get_cipher(unsigned int u)
{
unsigned int uu=ssl3_num_ciphers();
@@ -90,9 +90,10 @@ SSL_CIPHER *ssl23_get_cipher(unsigned int u)
/* This function needs to check if the ciphers required are actually
* available */
SSL_CIPHER *ssl23_get_cipher_by_char(const unsigned char *p)
const SSL_CIPHER *ssl23_get_cipher_by_char(const unsigned char *p)
{
SSL_CIPHER c,*cp;
SSL_CIPHER c;
const SSL_CIPHER *cp;
unsigned long id;
int n;