summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rc4/rc4.h
diff options
context:
space:
mode:
authortb <>2025-06-09 14:37:49 +0000
committertb <>2025-06-09 14:37:49 +0000
commit77890745eac7fbfd51208f10c1759d6998f0692b (patch)
tree3ae93c6a8839fff883c0dce5f2d46c7942284ac6 /src/lib/libcrypto/rc4/rc4.h
parent951cd4503ff3c4cc93c1a36cf06138b1ddd739d7 (diff)
downloadopenbsd-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/rc4/rc4.h')
-rw-r--r--src/lib/libcrypto/rc4/rc4.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/libcrypto/rc4/rc4.h b/src/lib/libcrypto/rc4/rc4.h
index a20472372b..c994b39a31 100644
--- a/src/lib/libcrypto/rc4/rc4.h
+++ b/src/lib/libcrypto/rc4/rc4.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: rc4.h,v 1.16 2025/01/25 17:59:44 tb Exp $ */ 1/* $OpenBSD: rc4.h,v 1.17 2025/06/09 14:37:49 tb Exp $ */
2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -59,10 +59,15 @@
59#ifndef HEADER_RC4_H 59#ifndef HEADER_RC4_H
60#define HEADER_RC4_H 60#define HEADER_RC4_H
61 61
62#include <openssl/opensslconf.h> /* OPENSSL_NO_RC4, RC4_INT */ 62#include <openssl/opensslconf.h> /* OPENSSL_NO_RC4 */
63 63
64#include <stddef.h> 64#include <stddef.h>
65 65
66#ifndef RC4_INT
67/* XXX - typedef */
68#define RC4_INT unsigned int
69#endif
70
66#ifdef __cplusplus 71#ifdef __cplusplus
67extern "C" { 72extern "C" {
68#endif 73#endif