Type-checked (and modern C compliant) OBJ_bsearch.
[openssl.git] / ssl / d1_lib.c
index d9486916f206ffd4d23208a1fec1c2708b657075..bd28b75e84c47ce93274bf8cfafc47ba2c664922 100644 (file)
@@ -175,9 +175,9 @@ void dtls1_clear(SSL *s)
  * to explicitly list their SSL_* codes. Currently RC4 is the only one
  * available, but if new ones emerge, they will have to be added...
  */
-SSL_CIPHER *dtls1_get_cipher(unsigned int u)
+const SSL_CIPHER *dtls1_get_cipher(unsigned int u)
        {
-       SSL_CIPHER *ciph = ssl3_get_cipher(u);
+       const SSL_CIPHER *ciph = ssl3_get_cipher(u);
 
        if (ciph != NULL)
                {