diff options
author | tb <> | 2025-06-09 14:37:49 +0000 |
---|---|---|
committer | tb <> | 2025-06-09 14:37:49 +0000 |
commit | 77890745eac7fbfd51208f10c1759d6998f0692b (patch) | |
tree | 3ae93c6a8839fff883c0dce5f2d46c7942284ac6 /src/lib/libcrypto/arch/arm/opensslconf.h | |
parent | 951cd4503ff3c4cc93c1a36cf06138b1ddd739d7 (diff) | |
download | openbsd-77890745eac7fbfd51208f10c1759d6998f0692b.tar.gz openbsd-77890745eac7fbfd51208f10c1759d6998f0692b.tar.bz2 openbsd-77890745eac7fbfd51208f10c1759d6998f0692b.zip |
Move (mostly) MI constants to proper headers
Most of the constants here are only defined if a specific header is in
scope. So move the machine-independent macros to those headers and lose
the header guards. Most of these should actually be typedefs but let's
change this when we're bumping the major since this technically has ABI
impact.
IDEA_INT RC2_INT and RC4_INT are always unsigned int
DES_LONG is always unsigned int except on i386
This preserves the existing situation on OpenBSD. If you're using
portable on i386 with a compiler that does not define __i386__,
there's an ABI break.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/arch/arm/opensslconf.h')
-rw-r--r-- | src/lib/libcrypto/arch/arm/opensslconf.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/lib/libcrypto/arch/arm/opensslconf.h b/src/lib/libcrypto/arch/arm/opensslconf.h index 576f49b0ec..ee2111390a 100644 --- a/src/lib/libcrypto/arch/arm/opensslconf.h +++ b/src/lib/libcrypto/arch/arm/opensslconf.h | |||
@@ -1,9 +1,4 @@ | |||
1 | #include <openssl/opensslfeatures.h> | 1 | #include <openssl/opensslfeatures.h> |
2 | /* crypto/opensslconf.h.in */ | ||
3 | |||
4 | #if defined(HEADER_CRYPTO_LOCAL_H) && !defined(OPENSSLDIR) | ||
5 | #define OPENSSLDIR "/etc/ssl" | ||
6 | #endif | ||
7 | 2 | ||
8 | #undef OPENSSL_EXPORT_VAR_AS_FUNCTION | 3 | #undef OPENSSL_EXPORT_VAR_AS_FUNCTION |
9 | 4 | ||
@@ -17,26 +12,7 @@ | |||
17 | #endif | 12 | #endif |
18 | #endif | 13 | #endif |
19 | 14 | ||
20 | #if defined(HEADER_IDEA_H) && !defined(IDEA_INT) | ||
21 | #define IDEA_INT unsigned int | ||
22 | #endif | ||
23 | |||
24 | #if defined(HEADER_RC2_H) && !defined(RC2_INT) | ||
25 | /* I need to put in a mod for the alpha - eay */ | ||
26 | #define RC2_INT unsigned int | ||
27 | #endif | ||
28 | |||
29 | #if defined(HEADER_RC4_H) | 15 | #if defined(HEADER_RC4_H) |
30 | #if !defined(RC4_INT) | ||
31 | /* using int types make the structure larger but make the code faster | ||
32 | * on most boxes I have tested - up to %20 faster. */ | ||
33 | /* | ||
34 | * I don't know what does "most" mean, but declaring "int" is a must on: | ||
35 | * - Intel P6 because partial register stalls are very expensive; | ||
36 | * - elder Alpha because it lacks byte load/store instructions; | ||
37 | */ | ||
38 | #define RC4_INT unsigned int | ||
39 | #endif | ||
40 | #if !defined(RC4_CHUNK) | 16 | #if !defined(RC4_CHUNK) |
41 | /* | 17 | /* |
42 | * This enables code handling data aligned at natural CPU word | 18 | * This enables code handling data aligned at natural CPU word |
@@ -46,14 +22,6 @@ | |||
46 | #endif | 22 | #endif |
47 | #endif | 23 | #endif |
48 | 24 | ||
49 | #if defined(HEADER_DES_H) && !defined(DES_LONG) | ||
50 | /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a | ||
51 | * %20 speed up (longs are 8 bytes, int's are 4). */ | ||
52 | #ifndef DES_LONG | ||
53 | #define DES_LONG unsigned int | ||
54 | #endif | ||
55 | #endif | ||
56 | |||
57 | #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) | 25 | #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) |
58 | #define CONFIG_HEADER_BN_H | 26 | #define CONFIG_HEADER_BN_H |
59 | #define BN_LLONG | 27 | #define BN_LLONG |