diff options
author | tb <> | 2025-01-25 17:59:44 +0000 |
---|---|---|
committer | tb <> | 2025-01-25 17:59:44 +0000 |
commit | 5482f7f31863bd209e2f594c751ead79f03aa62e (patch) | |
tree | 7454d675702b66e09c692528e45834a172db95ff /src | |
parent | 538936a6c977803d4e15c8449c956ab3c5d69d86 (diff) | |
download | openbsd-5482f7f31863bd209e2f594c751ead79f03aa62e.tar.gz openbsd-5482f7f31863bd209e2f594c751ead79f03aa62e.tar.bz2 openbsd-5482f7f31863bd209e2f594c751ead79f03aa62e.zip |
Remove #error if OPENSSL_NO_FOO is defined
discussed with jsing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/aes/aes.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/aes/aes_local.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/bf/blowfish.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/camellia/camellia.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/cast/cast.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/chacha/chacha.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/des/des.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/dh/dh.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/dsa/dsa.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/ec/ec.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/hmac/hmac.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/idea/idea.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/md4/md4.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/md5/md5.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/poly1305/poly1305.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/rc2/rc2.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/rc4/rc4.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/ripemd/ripemd.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/rsa/rsa.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/sha/sha.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/sm2/sm2.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/sm3/sm3.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/sm4/sm4.h | 6 |
23 files changed, 23 insertions, 115 deletions
diff --git a/src/lib/libcrypto/aes/aes.h b/src/lib/libcrypto/aes/aes.h index 702873e11c..8903a8ef8d 100644 --- a/src/lib/libcrypto/aes/aes.h +++ b/src/lib/libcrypto/aes/aes.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: aes.h,v 1.15 2023/07/31 05:04:06 tb Exp $ */ | 1 | /* $OpenBSD: aes.h,v 1.16 2025/01/25 17:59:44 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -54,10 +54,6 @@ | |||
54 | 54 | ||
55 | #include <openssl/opensslconf.h> | 55 | #include <openssl/opensslconf.h> |
56 | 56 | ||
57 | #ifdef OPENSSL_NO_AES | ||
58 | #error AES is disabled. | ||
59 | #endif | ||
60 | |||
61 | #include <stddef.h> | 57 | #include <stddef.h> |
62 | 58 | ||
63 | #define AES_ENCRYPT 1 | 59 | #define AES_ENCRYPT 1 |
diff --git a/src/lib/libcrypto/aes/aes_local.h b/src/lib/libcrypto/aes/aes_local.h index 3f134408c9..e0714df409 100644 --- a/src/lib/libcrypto/aes/aes_local.h +++ b/src/lib/libcrypto/aes/aes_local.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: aes_local.h,v 1.3 2024/03/27 11:15:44 jsing Exp $ */ | 1 | /* $OpenBSD: aes_local.h,v 1.4 2025/01/25 17:59:44 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -54,10 +54,6 @@ | |||
54 | 54 | ||
55 | #include <openssl/opensslconf.h> | 55 | #include <openssl/opensslconf.h> |
56 | 56 | ||
57 | #ifdef OPENSSL_NO_AES | ||
58 | #error AES is disabled. | ||
59 | #endif | ||
60 | |||
61 | #include <stdio.h> | 57 | #include <stdio.h> |
62 | #include <stdlib.h> | 58 | #include <stdlib.h> |
63 | #include <string.h> | 59 | #include <string.h> |
diff --git a/src/lib/libcrypto/bf/blowfish.h b/src/lib/libcrypto/bf/blowfish.h index b434e70cbb..5ea99af396 100644 --- a/src/lib/libcrypto/bf/blowfish.h +++ b/src/lib/libcrypto/bf/blowfish.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: blowfish.h,v 1.17 2023/07/31 05:04:06 tb Exp $ */ | 1 | /* $OpenBSD: blowfish.h,v 1.18 2025/01/25 17:59:44 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,10 +65,6 @@ | |||
65 | extern "C" { | 65 | extern "C" { |
66 | #endif | 66 | #endif |
67 | 67 | ||
68 | #ifdef OPENSSL_NO_BF | ||
69 | #error BF is disabled. | ||
70 | #endif | ||
71 | |||
72 | #define BF_ENCRYPT 1 | 68 | #define BF_ENCRYPT 1 |
73 | #define BF_DECRYPT 0 | 69 | #define BF_DECRYPT 0 |
74 | 70 | ||
diff --git a/src/lib/libcrypto/camellia/camellia.h b/src/lib/libcrypto/camellia/camellia.h index b9b5f792b1..c1f1a179c1 100644 --- a/src/lib/libcrypto/camellia/camellia.h +++ b/src/lib/libcrypto/camellia/camellia.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: camellia.h,v 1.5 2014/11/13 20:01:58 miod Exp $ */ | 1 | /* $OpenBSD: camellia.h,v 1.6 2025/01/25 17:59:44 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 2006 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2006 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -54,10 +54,6 @@ | |||
54 | 54 | ||
55 | #include <openssl/opensslconf.h> | 55 | #include <openssl/opensslconf.h> |
56 | 56 | ||
57 | #ifdef OPENSSL_NO_CAMELLIA | ||
58 | #error CAMELLIA is disabled. | ||
59 | #endif | ||
60 | |||
61 | #include <stddef.h> | 57 | #include <stddef.h> |
62 | 58 | ||
63 | #define CAMELLIA_ENCRYPT 1 | 59 | #define CAMELLIA_ENCRYPT 1 |
diff --git a/src/lib/libcrypto/cast/cast.h b/src/lib/libcrypto/cast/cast.h index 0936696066..5c12d91f97 100644 --- a/src/lib/libcrypto/cast/cast.h +++ b/src/lib/libcrypto/cast/cast.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cast.h,v 1.13 2023/07/08 07:25:43 jsing Exp $ */ | 1 | /* $OpenBSD: cast.h,v 1.14 2025/01/25 17:59:44 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,10 +65,6 @@ | |||
65 | extern "C" { | 65 | extern "C" { |
66 | #endif | 66 | #endif |
67 | 67 | ||
68 | #ifdef OPENSSL_NO_CAST | ||
69 | #error CAST is disabled. | ||
70 | #endif | ||
71 | |||
72 | #define CAST_ENCRYPT 1 | 68 | #define CAST_ENCRYPT 1 |
73 | #define CAST_DECRYPT 0 | 69 | #define CAST_DECRYPT 0 |
74 | 70 | ||
diff --git a/src/lib/libcrypto/chacha/chacha.h b/src/lib/libcrypto/chacha/chacha.h index e2345b2199..7d30c518a4 100644 --- a/src/lib/libcrypto/chacha/chacha.h +++ b/src/lib/libcrypto/chacha/chacha.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: chacha.h,v 1.8 2019/01/22 00:59:21 dlg Exp $ */ | 1 | /* $OpenBSD: chacha.h,v 1.9 2025/01/25 17:59:44 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -20,10 +20,6 @@ | |||
20 | 20 | ||
21 | #include <openssl/opensslconf.h> | 21 | #include <openssl/opensslconf.h> |
22 | 22 | ||
23 | #if defined(OPENSSL_NO_CHACHA) | ||
24 | #error ChaCha is disabled. | ||
25 | #endif | ||
26 | |||
27 | #include <stddef.h> | 23 | #include <stddef.h> |
28 | #include <stdint.h> | 24 | #include <stdint.h> |
29 | 25 | ||
diff --git a/src/lib/libcrypto/des/des.h b/src/lib/libcrypto/des/des.h index 5891fcefe9..2d957a192c 100644 --- a/src/lib/libcrypto/des/des.h +++ b/src/lib/libcrypto/des/des.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: des.h,v 1.22 2024/08/31 10:30:16 tb Exp $ */ | 1 | /* $OpenBSD: des.h,v 1.23 2025/01/25 17:59:44 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 | * |
@@ -61,10 +61,6 @@ | |||
61 | 61 | ||
62 | #include <openssl/opensslconf.h> | 62 | #include <openssl/opensslconf.h> |
63 | 63 | ||
64 | #ifdef OPENSSL_NO_DES | ||
65 | #error DES is disabled. | ||
66 | #endif | ||
67 | |||
68 | #ifdef __cplusplus | 64 | #ifdef __cplusplus |
69 | extern "C" { | 65 | extern "C" { |
70 | #endif | 66 | #endif |
diff --git a/src/lib/libcrypto/dh/dh.h b/src/lib/libcrypto/dh/dh.h index 65b4348acf..04bda3fac7 100644 --- a/src/lib/libcrypto/dh/dh.h +++ b/src/lib/libcrypto/dh/dh.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dh.h,v 1.37 2023/04/18 08:33:43 tb Exp $ */ | 1 | /* $OpenBSD: dh.h,v 1.38 2025/01/25 17:59:44 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 | * |
@@ -61,10 +61,6 @@ | |||
61 | 61 | ||
62 | #include <openssl/opensslconf.h> | 62 | #include <openssl/opensslconf.h> |
63 | 63 | ||
64 | #ifdef OPENSSL_NO_DH | ||
65 | #error DH is disabled. | ||
66 | #endif | ||
67 | |||
68 | #ifndef OPENSSL_NO_BIO | 64 | #ifndef OPENSSL_NO_BIO |
69 | #include <openssl/bio.h> | 65 | #include <openssl/bio.h> |
70 | #endif | 66 | #endif |
diff --git a/src/lib/libcrypto/dsa/dsa.h b/src/lib/libcrypto/dsa/dsa.h index 9f3d561239..332697ccf3 100644 --- a/src/lib/libcrypto/dsa/dsa.h +++ b/src/lib/libcrypto/dsa/dsa.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa.h,v 1.46 2024/12/05 19:34:46 tb Exp $ */ | 1 | /* $OpenBSD: dsa.h,v 1.47 2025/01/25 17:59:44 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 | * |
@@ -67,10 +67,6 @@ | |||
67 | 67 | ||
68 | #include <openssl/opensslconf.h> | 68 | #include <openssl/opensslconf.h> |
69 | 69 | ||
70 | #ifdef OPENSSL_NO_DSA | ||
71 | #error DSA is disabled. | ||
72 | #endif | ||
73 | |||
74 | #ifndef OPENSSL_NO_BIO | 70 | #ifndef OPENSSL_NO_BIO |
75 | #include <openssl/bio.h> | 71 | #include <openssl/bio.h> |
76 | #endif | 72 | #endif |
diff --git a/src/lib/libcrypto/ec/ec.h b/src/lib/libcrypto/ec/ec.h index 10513795e4..dd06dcb8b4 100644 --- a/src/lib/libcrypto/ec/ec.h +++ b/src/lib/libcrypto/ec/ec.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec.h,v 1.48 2024/04/15 15:42:23 tb Exp $ */ | 1 | /* $OpenBSD: ec.h,v 1.49 2025/01/25 17:59:44 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -73,10 +73,6 @@ | |||
73 | 73 | ||
74 | #include <openssl/opensslconf.h> | 74 | #include <openssl/opensslconf.h> |
75 | 75 | ||
76 | #ifdef OPENSSL_NO_EC | ||
77 | #error EC is disabled. | ||
78 | #endif | ||
79 | |||
80 | #include <openssl/asn1.h> | 76 | #include <openssl/asn1.h> |
81 | #include <openssl/bn.h> | 77 | #include <openssl/bn.h> |
82 | 78 | ||
diff --git a/src/lib/libcrypto/hmac/hmac.h b/src/lib/libcrypto/hmac/hmac.h index 6f29972aad..2216fd9258 100644 --- a/src/lib/libcrypto/hmac/hmac.h +++ b/src/lib/libcrypto/hmac/hmac.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: hmac.h,v 1.20 2024/08/31 10:42:21 tb Exp $ */ | 1 | /* $OpenBSD: hmac.h,v 1.21 2025/01/25 17:59:44 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 | * |
@@ -64,10 +64,6 @@ | |||
64 | #define __bounded__(x, y, z) | 64 | #define __bounded__(x, y, z) |
65 | #endif | 65 | #endif |
66 | 66 | ||
67 | #ifdef OPENSSL_NO_HMAC | ||
68 | #error HMAC is disabled. | ||
69 | #endif | ||
70 | |||
71 | #include <openssl/evp.h> | 67 | #include <openssl/evp.h> |
72 | 68 | ||
73 | #define HMAC_MAX_MD_CBLOCK 144 /* largest known is SHA3-224 */ | 69 | #define HMAC_MAX_MD_CBLOCK 144 /* largest known is SHA3-224 */ |
diff --git a/src/lib/libcrypto/idea/idea.h b/src/lib/libcrypto/idea/idea.h index 81c3453bce..2bdd3647fd 100644 --- a/src/lib/libcrypto/idea/idea.h +++ b/src/lib/libcrypto/idea/idea.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: idea.h,v 1.12 2024/05/19 07:12:50 jsg Exp $ */ | 1 | /* $OpenBSD: idea.h,v 1.13 2025/01/25 17:59:44 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 | * |
@@ -61,10 +61,6 @@ | |||
61 | 61 | ||
62 | #include <openssl/opensslconf.h> /* IDEA_INT, OPENSSL_NO_IDEA */ | 62 | #include <openssl/opensslconf.h> /* IDEA_INT, OPENSSL_NO_IDEA */ |
63 | 63 | ||
64 | #ifdef OPENSSL_NO_IDEA | ||
65 | #error IDEA is disabled. | ||
66 | #endif | ||
67 | |||
68 | #define IDEA_ENCRYPT 1 | 64 | #define IDEA_ENCRYPT 1 |
69 | #define IDEA_DECRYPT 0 | 65 | #define IDEA_DECRYPT 0 |
70 | 66 | ||
diff --git a/src/lib/libcrypto/md4/md4.h b/src/lib/libcrypto/md4/md4.h index 2d0169e719..d2a107a19a 100644 --- a/src/lib/libcrypto/md4/md4.h +++ b/src/lib/libcrypto/md4/md4.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: md4.h,v 1.21 2024/06/01 18:42:49 tb Exp $ */ | 1 | /* $OpenBSD: md4.h,v 1.22 2025/01/25 17:59:44 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 | * |
@@ -71,10 +71,6 @@ | |||
71 | extern "C" { | 71 | extern "C" { |
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | #ifdef OPENSSL_NO_MD4 | ||
75 | #error MD4 is disabled. | ||
76 | #endif | ||
77 | |||
78 | /* | 74 | /* |
79 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 75 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
80 | * ! MD4_LONG has to be at least 32 bits wide. ! | 76 | * ! MD4_LONG has to be at least 32 bits wide. ! |
diff --git a/src/lib/libcrypto/md5/md5.h b/src/lib/libcrypto/md5/md5.h index 99e71783b9..4d94c84ba6 100644 --- a/src/lib/libcrypto/md5/md5.h +++ b/src/lib/libcrypto/md5/md5.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: md5.h,v 1.24 2025/01/19 07:51:41 jsing Exp $ */ | 1 | /* $OpenBSD: md5.h,v 1.25 2025/01/25 17:59:44 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 | * |
@@ -71,10 +71,6 @@ | |||
71 | extern "C" { | 71 | extern "C" { |
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | #ifdef OPENSSL_NO_MD5 | ||
75 | #error MD5 is disabled. | ||
76 | #endif | ||
77 | |||
78 | #define MD5_LONG unsigned int | 74 | #define MD5_LONG unsigned int |
79 | 75 | ||
80 | #define MD5_CBLOCK 64 | 76 | #define MD5_CBLOCK 64 |
diff --git a/src/lib/libcrypto/poly1305/poly1305.h b/src/lib/libcrypto/poly1305/poly1305.h index 00ab0bfd2b..f5383355a6 100644 --- a/src/lib/libcrypto/poly1305/poly1305.h +++ b/src/lib/libcrypto/poly1305/poly1305.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: poly1305.h,v 1.3 2014/07/25 14:04:51 jsing Exp $ */ | 1 | /* $OpenBSD: poly1305.h,v 1.4 2025/01/25 17:59:44 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -20,10 +20,6 @@ | |||
20 | 20 | ||
21 | #include <openssl/opensslconf.h> | 21 | #include <openssl/opensslconf.h> |
22 | 22 | ||
23 | #if defined(OPENSSL_NO_POLY1305) | ||
24 | #error Poly1305 is disabled. | ||
25 | #endif | ||
26 | |||
27 | #include <stddef.h> | 23 | #include <stddef.h> |
28 | 24 | ||
29 | #ifdef __cplusplus | 25 | #ifdef __cplusplus |
diff --git a/src/lib/libcrypto/rc2/rc2.h b/src/lib/libcrypto/rc2/rc2.h index 09c6c08a51..96e395f32d 100644 --- a/src/lib/libcrypto/rc2/rc2.h +++ b/src/lib/libcrypto/rc2/rc2.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rc2.h,v 1.12 2023/07/07 08:29:37 beck Exp $ */ | 1 | /* $OpenBSD: rc2.h,v 1.13 2025/01/25 17:59:44 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 | * |
@@ -61,10 +61,6 @@ | |||
61 | 61 | ||
62 | #include <openssl/opensslconf.h> /* OPENSSL_NO_RC2, RC2_INT */ | 62 | #include <openssl/opensslconf.h> /* OPENSSL_NO_RC2, RC2_INT */ |
63 | 63 | ||
64 | #ifdef OPENSSL_NO_RC2 | ||
65 | #error RC2 is disabled. | ||
66 | #endif | ||
67 | |||
68 | #define RC2_ENCRYPT 1 | 64 | #define RC2_ENCRYPT 1 |
69 | #define RC2_DECRYPT 0 | 65 | #define RC2_DECRYPT 0 |
70 | 66 | ||
diff --git a/src/lib/libcrypto/rc4/rc4.h b/src/lib/libcrypto/rc4/rc4.h index ff2514187f..a20472372b 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.15 2024/03/27 12:13:08 jsing Exp $ */ | 1 | /* $OpenBSD: rc4.h,v 1.16 2025/01/25 17:59:44 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 | * |
@@ -61,10 +61,6 @@ | |||
61 | 61 | ||
62 | #include <openssl/opensslconf.h> /* OPENSSL_NO_RC4, RC4_INT */ | 62 | #include <openssl/opensslconf.h> /* OPENSSL_NO_RC4, RC4_INT */ |
63 | 63 | ||
64 | #ifdef OPENSSL_NO_RC4 | ||
65 | #error RC4 is disabled. | ||
66 | #endif | ||
67 | |||
68 | #include <stddef.h> | 64 | #include <stddef.h> |
69 | 65 | ||
70 | #ifdef __cplusplus | 66 | #ifdef __cplusplus |
diff --git a/src/lib/libcrypto/ripemd/ripemd.h b/src/lib/libcrypto/ripemd/ripemd.h index 83f7b36bc0..c7b1bd79b9 100644 --- a/src/lib/libcrypto/ripemd/ripemd.h +++ b/src/lib/libcrypto/ripemd/ripemd.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ripemd.h,v 1.19 2024/06/01 18:42:49 tb Exp $ */ | 1 | /* $OpenBSD: ripemd.h,v 1.20 2025/01/25 17:59:44 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 | * |
@@ -71,10 +71,6 @@ | |||
71 | extern "C" { | 71 | extern "C" { |
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | #ifdef OPENSSL_NO_RIPEMD | ||
75 | #error RIPEMD is disabled. | ||
76 | #endif | ||
77 | |||
78 | #if defined(__LP32__) | 74 | #if defined(__LP32__) |
79 | #define RIPEMD160_LONG unsigned long | 75 | #define RIPEMD160_LONG unsigned long |
80 | #elif defined(__ILP64__) | 76 | #elif defined(__ILP64__) |
diff --git a/src/lib/libcrypto/rsa/rsa.h b/src/lib/libcrypto/rsa/rsa.h index 60512317bd..5620128998 100644 --- a/src/lib/libcrypto/rsa/rsa.h +++ b/src/lib/libcrypto/rsa/rsa.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa.h,v 1.66 2024/05/19 07:12:50 jsg Exp $ */ | 1 | /* $OpenBSD: rsa.h,v 1.67 2025/01/25 17:59:44 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 | * |
@@ -71,10 +71,6 @@ | |||
71 | 71 | ||
72 | #include <openssl/ossl_typ.h> | 72 | #include <openssl/ossl_typ.h> |
73 | 73 | ||
74 | #ifdef OPENSSL_NO_RSA | ||
75 | #error RSA is disabled. | ||
76 | #endif | ||
77 | |||
78 | #ifdef __cplusplus | 74 | #ifdef __cplusplus |
79 | extern "C" { | 75 | extern "C" { |
80 | #endif | 76 | #endif |
diff --git a/src/lib/libcrypto/sha/sha.h b/src/lib/libcrypto/sha/sha.h index cef2d7f497..ec97f48b2e 100644 --- a/src/lib/libcrypto/sha/sha.h +++ b/src/lib/libcrypto/sha/sha.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sha.h,v 1.25 2024/06/01 08:11:44 tb Exp $ */ | 1 | /* $OpenBSD: sha.h,v 1.26 2025/01/25 17:59:44 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 | * |
@@ -70,10 +70,6 @@ | |||
70 | extern "C" { | 70 | extern "C" { |
71 | #endif | 71 | #endif |
72 | 72 | ||
73 | #if defined(OPENSSL_NO_SHA) || defined(OPENSSL_NO_SHA1) | ||
74 | #error SHA is disabled. | ||
75 | #endif | ||
76 | |||
77 | /* | 73 | /* |
78 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 74 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
79 | * ! SHA_LONG has to be at least 32 bits wide. ! | 75 | * ! SHA_LONG has to be at least 32 bits wide. ! |
diff --git a/src/lib/libcrypto/sm2/sm2.h b/src/lib/libcrypto/sm2/sm2.h index 2f14fe666e..b5195a73e1 100644 --- a/src/lib/libcrypto/sm2/sm2.h +++ b/src/lib/libcrypto/sm2/sm2.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sm2.h,v 1.3 2023/07/28 15:50:33 tb Exp $ */ | 1 | /* $OpenBSD: sm2.h,v 1.4 2025/01/25 17:59:44 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2017, 2019 Ribose Inc | 3 | * Copyright (c) 2017, 2019 Ribose Inc |
4 | * | 4 | * |
@@ -22,10 +22,6 @@ | |||
22 | 22 | ||
23 | #include <openssl/ec.h> | 23 | #include <openssl/ec.h> |
24 | 24 | ||
25 | #ifdef OPENSSL_NO_SM2 | ||
26 | #error SM2 is disabled. | ||
27 | #endif | ||
28 | |||
29 | #ifdef __cplusplus | 25 | #ifdef __cplusplus |
30 | extern "C" { | 26 | extern "C" { |
31 | #endif | 27 | #endif |
diff --git a/src/lib/libcrypto/sm3/sm3.h b/src/lib/libcrypto/sm3/sm3.h index 553c64dcdb..fa435d3d0f 100644 --- a/src/lib/libcrypto/sm3/sm3.h +++ b/src/lib/libcrypto/sm3/sm3.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sm3.h,v 1.1 2018/11/11 06:53:31 tb Exp $ */ | 1 | /* $OpenBSD: sm3.h,v 1.2 2025/01/25 17:59:44 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018, Ribose Inc | 3 | * Copyright (c) 2018, Ribose Inc |
4 | * | 4 | * |
@@ -25,10 +25,6 @@ | |||
25 | extern "C" { | 25 | extern "C" { |
26 | #endif | 26 | #endif |
27 | 27 | ||
28 | #ifdef OPENSSL_NO_SM3 | ||
29 | #error SM3 is disabled. | ||
30 | #endif | ||
31 | |||
32 | #define SM3_DIGEST_LENGTH 32 | 28 | #define SM3_DIGEST_LENGTH 32 |
33 | #define SM3_WORD unsigned int | 29 | #define SM3_WORD unsigned int |
34 | 30 | ||
diff --git a/src/lib/libcrypto/sm4/sm4.h b/src/lib/libcrypto/sm4/sm4.h index 5931ac714b..0c7fc223eb 100644 --- a/src/lib/libcrypto/sm4/sm4.h +++ b/src/lib/libcrypto/sm4/sm4.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sm4.h,v 1.1 2019/03/17 17:42:37 tb Exp $ */ | 1 | /* $OpenBSD: sm4.h,v 1.2 2025/01/25 17:59:44 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2017, 2019 Ribose Inc | 3 | * Copyright (c) 2017, 2019 Ribose Inc |
4 | * | 4 | * |
@@ -26,10 +26,6 @@ | |||
26 | extern "C" { | 26 | extern "C" { |
27 | #endif | 27 | #endif |
28 | 28 | ||
29 | #ifdef OPENSSL_NO_SM4 | ||
30 | #error SM4 is disabled. | ||
31 | #endif | ||
32 | |||
33 | #define SM4_DECRYPT 0 | 29 | #define SM4_DECRYPT 0 |
34 | #define SM4_ENCRYPT 1 | 30 | #define SM4_ENCRYPT 1 |
35 | 31 | ||