diff options
| author | jsing <> | 2023-03-08 04:50:27 +0000 |
|---|---|---|
| committer | jsing <> | 2023-03-08 04:50:27 +0000 |
| commit | c1e53bad96443f0f9eea47910c725fb8cb5636ac (patch) | |
| tree | 3c4980fe37e68835a8cfd79b0b18e7d38f9c023b /src/lib/libcrypto/ec/ec_local.h | |
| parent | ecd1f4763943bcfd15caa4b48ac41a4b1f90be7a (diff) | |
| download | openbsd-c1e53bad96443f0f9eea47910c725fb8cb5636ac.tar.gz openbsd-c1e53bad96443f0f9eea47910c725fb8cb5636ac.tar.bz2 openbsd-c1e53bad96443f0f9eea47910c725fb8cb5636ac.zip | |
Remove EC_FLAGS_DEFAULT_OCT.
The EC code has an amazing array of function pointer hooks, such that a
method can hook into almost any operation... and then there is the
EC_FLAGS_DEFAULT_OCT flag, which adds a bunch of complex code and #ifdef
so you can avoid setting three of those function pointers!
Remove EC_FLAGS_DEFAULT_OCT, the now unused flags field from EC_METHOD,
along with the various code that was wrapped in EC_FLAGS_DEFAULT_OCT,
setting the three function pointers that need to be set in each of the
EC_METHODs.
ok beck@ tb@
Diffstat (limited to 'src/lib/libcrypto/ec/ec_local.h')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_local.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h index a1d7c9d3f2..d4cb777c83 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.9 2023/03/07 05:50:59 jsing Exp $ */ | 1 | /* $OpenBSD: ec_local.h,v 1.10 2023/03/08 04:50:27 jsing 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 | */ |
| @@ -86,17 +86,7 @@ __BEGIN_HIDDEN_DECLS | |||
| 86 | # endif | 86 | # endif |
| 87 | #endif | 87 | #endif |
| 88 | 88 | ||
| 89 | /* Use default functions for poin2oct, oct2point and compressed coordinates */ | ||
| 90 | #define EC_FLAGS_DEFAULT_OCT 0x1 | ||
| 91 | |||
| 92 | struct ec_method_st { | 89 | struct ec_method_st { |
| 93 | |||
| 94 | /* | ||
| 95 | * Methods and members exposed directly by the public API. | ||
| 96 | */ | ||
| 97 | |||
| 98 | int flags; | ||
| 99 | |||
| 100 | int field_type; | 90 | int field_type; |
| 101 | 91 | ||
| 102 | int (*group_init)(EC_GROUP *); | 92 | int (*group_init)(EC_GROUP *); |
