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/crypto_local.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/crypto_local.h')
| -rw-r--r-- | src/lib/libcrypto/crypto_local.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/crypto_local.h b/src/lib/libcrypto/crypto_local.h index d549102da0..606f17cefb 100644 --- a/src/lib/libcrypto/crypto_local.h +++ b/src/lib/libcrypto/crypto_local.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: crypto_local.h,v 1.5 2025/05/24 07:23:14 jsing Exp $ */ | 1 | /* $OpenBSD: crypto_local.h,v 1.6 2025/06/09 14:37:48 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -65,6 +65,10 @@ | |||
| 65 | extern "C" { | 65 | extern "C" { |
| 66 | #endif | 66 | #endif |
| 67 | 67 | ||
| 68 | #ifndef OPENSSLDIR | ||
| 69 | #define OPENSSLDIR "/etc/ssl" | ||
| 70 | #endif | ||
| 71 | |||
| 68 | #define X509_CERT_AREA OPENSSLDIR | 72 | #define X509_CERT_AREA OPENSSLDIR |
| 69 | #define X509_CERT_DIR OPENSSLDIR "/certs" | 73 | #define X509_CERT_DIR OPENSSLDIR "/certs" |
| 70 | #define X509_CERT_FILE OPENSSLDIR "/cert.pem" | 74 | #define X509_CERT_FILE OPENSSLDIR "/cert.pem" |
