This patch was "ignited" by OpenBSD 3>=4 support. They've switched to ELF
[openssl.git] / crypto / cast / cast.h
index 6cc5e8a..90b45b9 100644 (file)
@@ -63,7 +63,9 @@
 extern "C" {
 #endif
 
-#ifdef NO_CAST
+#include <openssl/opensslconf.h>
+
+#ifdef OPENSSL_NO_CAST
 #error CAST is disabled.
 #endif
 
@@ -82,7 +84,7 @@ typedef struct cast_key_st
        } CAST_KEY;
 
  
-void CAST_set_key(CAST_KEY *key, int len, unsigned char *data);
+void CAST_set_key(CAST_KEY *key, int len, const unsigned char *data);
 void CAST_ecb_encrypt(const unsigned char *in,unsigned char *out,CAST_KEY *key,
                      int enc);
 void CAST_encrypt(CAST_LONG *data,CAST_KEY *key);