Make fcrypt_body() static and remove prototype.
authorjsing <jsing@openbsd.org>
Sat, 31 Aug 2024 16:22:18 +0000 (16:22 +0000)
committerjsing <jsing@openbsd.org>
Sat, 31 Aug 2024 16:22:18 +0000 (16:22 +0000)
lib/libcrypto/des/des_fcrypt.c
lib/libcrypto/des/des_local.h

index 049040b..b33b124 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: des_fcrypt.c,v 1.3 2024/08/31 16:17:13 jsing Exp $ */
+/* $OpenBSD: des_fcrypt.c,v 1.4 2024/08/31 16:22:18 jsing Exp $ */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
@@ -84,7 +84,7 @@
 #define HPERM_OP(a,t,n,m) ((t)=((((a)<<(16-(n)))^(a))&(m)),            \
        (a)=(a)^(t)^(t>>(16-(n))))                                      \
 
-void
+static void
 fcrypt_body(DES_LONG *out, DES_key_schedule *ks, DES_LONG Eswap0,
     DES_LONG Eswap1)
 {
index 9a0d366..61bfde7 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: des_local.h,v 1.4 2024/08/31 16:17:13 jsing Exp $ */
+/* $OpenBSD: des_local.h,v 1.5 2024/08/31 16:22:18 jsing Exp $ */
 /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
@@ -217,9 +217,6 @@ ROTATE(uint32_t a, uint32_t n)
 
 extern const DES_LONG DES_SPtrans[8][64];
 
-void fcrypt_body(DES_LONG *out, DES_key_schedule *ks,
-    DES_LONG Eswap0, DES_LONG Eswap1);
-
 #ifdef OPENSSL_SMALL_FOOTPRINT
 #undef DES_UNROLL
 #endif