It was a very bad idea to use #include "../e_os.h" -- when this occurs
[openssl.git] / crypto / des / ecb_enc.c
index dfeb1870884cedfa6738f48db1a54769ffb37084..badb7e1149e75c45737db43f7ec105fbe84dd106 100644 (file)
@@ -103,11 +103,14 @@ const char *des_options(void)
        }
                
 
-void des_ecb_encrypt(const des_cblock in, des_cblock out, des_key_schedule ks,
+void des_ecb_encrypt(const_des_cblock *input, des_cblock *output,
+            des_key_schedule ks,
             int enc)
        {
        register DES_LONG l;
        DES_LONG ll[2];
+       const unsigned char *in = &(*input)[0];
+       unsigned char *out = &(*output)[0];
 
        c2l(in,l); ll[0]=l;
        c2l(in,l); ll[1]=l;