diff options
| author | tb <> | 2023-07-28 15:50:33 +0000 |
|---|---|---|
| committer | tb <> | 2023-07-28 15:50:33 +0000 |
| commit | dee6ca6302cdbd5982c40288832f1fbe51d045d5 (patch) | |
| tree | 919fa2c577092b41cb1ba147c14b98991a0eacca /src | |
| parent | a65012e9329b7bde2223964c16b2a59e310f44b5 (diff) | |
| download | openbsd-dee6ca6302cdbd5982c40288832f1fbe51d045d5.tar.gz openbsd-dee6ca6302cdbd5982c40288832f1fbe51d045d5.tar.bz2 openbsd-dee6ca6302cdbd5982c40288832f1fbe51d045d5.zip | |
Stop including ecdsa.h and ecdh.h internally
These headers are now reduced to #include <openssl/ec.h> and are provided
for compatiblity only. There's no point in using them. At the same time
garbage collect the last uses of OPENSSL_NO_{ECDSA,ECDH} in our tree.
ok jsing
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_local.h | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/ec/ec_pmeth.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/ecdsa/ecdsa_local.h | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/gost/gost_local.h | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/gost/gostr341001_pmeth.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/sm2/sm2.h | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/sm2/sm2_local.h | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/x509/x509.h | 8 |
8 files changed, 9 insertions, 21 deletions
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h index 8153d4a96a..3252eeb1c8 100644 --- a/src/lib/libcrypto/ec/ec_local.h +++ b/src/lib/libcrypto/ec/ec_local.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_local.h,v 1.25 2023/07/28 09:28:37 tb Exp $ */ | 1 | /* $OpenBSD: ec_local.h,v 1.26 2023/07/28 15:50:33 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,7 +73,6 @@ | |||
| 73 | 73 | ||
| 74 | #include <openssl/bn.h> | 74 | #include <openssl/bn.h> |
| 75 | #include <openssl/ec.h> | 75 | #include <openssl/ec.h> |
| 76 | #include <openssl/ecdsa.h> | ||
| 77 | #include <openssl/objects.h> | 76 | #include <openssl/objects.h> |
| 78 | 77 | ||
| 79 | #include "bn_local.h" | 78 | #include "bn_local.h" |
diff --git a/src/lib/libcrypto/ec/ec_pmeth.c b/src/lib/libcrypto/ec/ec_pmeth.c index 7c94f80c7f..d3bf7e8cdc 100644 --- a/src/lib/libcrypto/ec/ec_pmeth.c +++ b/src/lib/libcrypto/ec/ec_pmeth.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_pmeth.c,v 1.18 2023/06/25 19:26:04 tb Exp $ */ | 1 | /* $OpenBSD: ec_pmeth.c,v 1.19 2023/07/28 15:50:33 tb Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006. | 3 | * project 2006. |
| 4 | */ | 4 | */ |
| @@ -61,7 +61,6 @@ | |||
| 61 | 61 | ||
| 62 | #include <openssl/asn1t.h> | 62 | #include <openssl/asn1t.h> |
| 63 | #include <openssl/ec.h> | 63 | #include <openssl/ec.h> |
| 64 | #include <openssl/ecdsa.h> | ||
| 65 | #include <openssl/err.h> | 64 | #include <openssl/err.h> |
| 66 | #include <openssl/evp.h> | 65 | #include <openssl/evp.h> |
| 67 | #include <openssl/x509.h> | 66 | #include <openssl/x509.h> |
diff --git a/src/lib/libcrypto/ecdsa/ecdsa_local.h b/src/lib/libcrypto/ecdsa/ecdsa_local.h index 249e045900..cc3af3e10f 100644 --- a/src/lib/libcrypto/ecdsa/ecdsa_local.h +++ b/src/lib/libcrypto/ecdsa/ecdsa_local.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ecdsa_local.h,v 1.1 2023/07/05 11:37:46 tb Exp $ */ | 1 | /* $OpenBSD: ecdsa_local.h,v 1.2 2023/07/28 15:50:33 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Nils Larsch for the OpenSSL project | 3 | * Written by Nils Larsch for the OpenSSL project |
| 4 | */ | 4 | */ |
| @@ -59,7 +59,7 @@ | |||
| 59 | #ifndef HEADER_ECS_LOCAL_H | 59 | #ifndef HEADER_ECS_LOCAL_H |
| 60 | #define HEADER_ECS_LOCAL_H | 60 | #define HEADER_ECS_LOCAL_H |
| 61 | 61 | ||
| 62 | #include <openssl/ecdsa.h> | 62 | #include <openssl/ec.h> |
| 63 | 63 | ||
| 64 | __BEGIN_HIDDEN_DECLS | 64 | __BEGIN_HIDDEN_DECLS |
| 65 | 65 | ||
diff --git a/src/lib/libcrypto/gost/gost_local.h b/src/lib/libcrypto/gost/gost_local.h index 830f14149e..db07d06f04 100644 --- a/src/lib/libcrypto/gost/gost_local.h +++ b/src/lib/libcrypto/gost/gost_local.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: gost_local.h,v 1.2 2022/11/26 17:23:18 tb Exp $ */ | 1 | /* $OpenBSD: gost_local.h,v 1.3 2023/07/28 15:50:33 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
| 4 | * Copyright (c) 2005-2006 Cryptocom LTD | 4 | * Copyright (c) 2005-2006 Cryptocom LTD |
| @@ -53,7 +53,6 @@ | |||
| 53 | #define HEADER_GOST_LOCAL_H | 53 | #define HEADER_GOST_LOCAL_H |
| 54 | 54 | ||
| 55 | #include <openssl/ec.h> | 55 | #include <openssl/ec.h> |
| 56 | #include <openssl/ecdsa.h> | ||
| 57 | 56 | ||
| 58 | __BEGIN_HIDDEN_DECLS | 57 | __BEGIN_HIDDEN_DECLS |
| 59 | 58 | ||
diff --git a/src/lib/libcrypto/gost/gostr341001_pmeth.c b/src/lib/libcrypto/gost/gostr341001_pmeth.c index 93e4820d7c..c5e05bec60 100644 --- a/src/lib/libcrypto/gost/gostr341001_pmeth.c +++ b/src/lib/libcrypto/gost/gostr341001_pmeth.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: gostr341001_pmeth.c,v 1.18 2023/07/05 11:37:45 tb Exp $ */ | 1 | /* $OpenBSD: gostr341001_pmeth.c,v 1.19 2023/07/28 15:50:33 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
| 4 | * Copyright (c) 2005-2006 Cryptocom LTD | 4 | * Copyright (c) 2005-2006 Cryptocom LTD |
| @@ -59,7 +59,6 @@ | |||
| 59 | #include <openssl/err.h> | 59 | #include <openssl/err.h> |
| 60 | #include <openssl/gost.h> | 60 | #include <openssl/gost.h> |
| 61 | #include <openssl/ec.h> | 61 | #include <openssl/ec.h> |
| 62 | #include <openssl/ecdsa.h> | ||
| 63 | #include <openssl/x509.h> | 62 | #include <openssl/x509.h> |
| 64 | 63 | ||
| 65 | #include "ecdsa_local.h" | 64 | #include "ecdsa_local.h" |
diff --git a/src/lib/libcrypto/sm2/sm2.h b/src/lib/libcrypto/sm2/sm2.h index dee75eb68b..2f14fe666e 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.2 2022/07/12 14:42:50 kn Exp $ */ | 1 | /* $OpenBSD: sm2.h,v 1.3 2023/07/28 15:50:33 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2017, 2019 Ribose Inc | 3 | * Copyright (c) 2017, 2019 Ribose Inc |
| 4 | * | 4 | * |
| @@ -21,7 +21,6 @@ | |||
| 21 | #include <openssl/opensslconf.h> | 21 | #include <openssl/opensslconf.h> |
| 22 | 22 | ||
| 23 | #include <openssl/ec.h> | 23 | #include <openssl/ec.h> |
| 24 | #include <openssl/ecdsa.h> | ||
| 25 | 24 | ||
| 26 | #ifdef OPENSSL_NO_SM2 | 25 | #ifdef OPENSSL_NO_SM2 |
| 27 | #error SM2 is disabled. | 26 | #error SM2 is disabled. |
diff --git a/src/lib/libcrypto/sm2/sm2_local.h b/src/lib/libcrypto/sm2/sm2_local.h index ad97f2c771..388c468ef2 100644 --- a/src/lib/libcrypto/sm2/sm2_local.h +++ b/src/lib/libcrypto/sm2/sm2_local.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: sm2_local.h,v 1.2 2022/11/26 17:23:18 tb Exp $ */ | 1 | /* $OpenBSD: sm2_local.h,v 1.3 2023/07/28 15:50:33 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2017, 2019 Ribose Inc | 3 | * Copyright (c) 2017, 2019 Ribose Inc |
| 4 | * | 4 | * |
| @@ -19,7 +19,6 @@ | |||
| 19 | #define HEADER_SM2_LOCAL_H | 19 | #define HEADER_SM2_LOCAL_H |
| 20 | 20 | ||
| 21 | #include <openssl/ec.h> | 21 | #include <openssl/ec.h> |
| 22 | #include <openssl/ecdsa.h> | ||
| 23 | 22 | ||
| 24 | __BEGIN_HIDDEN_DECLS | 23 | __BEGIN_HIDDEN_DECLS |
| 25 | 24 | ||
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h index c2a9dfedc5..f76576f61c 100644 --- a/src/lib/libcrypto/x509/x509.h +++ b/src/lib/libcrypto/x509/x509.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509.h,v 1.100 2023/04/25 18:57:57 tb Exp $ */ | 1 | /* $OpenBSD: x509.h,v 1.101 2023/07/28 15:50:33 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 | * |
| @@ -82,12 +82,6 @@ | |||
| 82 | #ifndef OPENSSL_NO_EC | 82 | #ifndef OPENSSL_NO_EC |
| 83 | #include <openssl/ec.h> | 83 | #include <openssl/ec.h> |
| 84 | #endif | 84 | #endif |
| 85 | #ifndef OPENSSL_NO_ECDSA | ||
| 86 | #include <openssl/ecdsa.h> | ||
| 87 | #endif | ||
| 88 | #ifndef OPENSSL_NO_ECDH | ||
| 89 | #include <openssl/ecdh.h> | ||
| 90 | #endif | ||
| 91 | #ifndef OPENSSL_NO_EVP | 85 | #ifndef OPENSSL_NO_EVP |
| 92 | #include <openssl/evp.h> | 86 | #include <openssl/evp.h> |
| 93 | #endif | 87 | #endif |
