diff options
author | tb <> | 2024-08-30 17:44:56 +0000 |
---|---|---|
committer | tb <> | 2024-08-30 17:44:56 +0000 |
commit | ee27a83f96b570b17b650e3dbb3424206be95bc6 (patch) | |
tree | fb9f42bfb23469de86813e1534965b22b59fa684 /src/lib/libcrypto/dh/dh_local.h | |
parent | 0191f2decd866397df1b2c19c627901a64630be3 (diff) | |
download | openbsd-ee27a83f96b570b17b650e3dbb3424206be95bc6.tar.gz openbsd-ee27a83f96b570b17b650e3dbb3424206be95bc6.tar.bz2 openbsd-ee27a83f96b570b17b650e3dbb3424206be95bc6.zip |
Garbage collect the DH_check*_ex() API
This was only needed by the EVP_PKEY_*check() API, which was defanged. So
this silly garbage can now go: it translated flags to errors on the error
stack so that openssl *check could print ugly errors while DoS-ing the
user.
ok beck
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/dh/dh_local.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/lib/libcrypto/dh/dh_local.h b/src/lib/libcrypto/dh/dh_local.h index 22e2256906..fe7c12bb05 100644 --- a/src/lib/libcrypto/dh/dh_local.h +++ b/src/lib/libcrypto/dh/dh_local.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dh_local.h,v 1.4 2023/11/29 21:35:57 tb Exp $ */ | 1 | /* $OpenBSD: dh_local.h,v 1.5 2024/08/30 17:44:56 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 | * |
@@ -102,15 +102,6 @@ struct dh_st { | |||
102 | const DH_METHOD *meth; | 102 | const DH_METHOD *meth; |
103 | }; | 103 | }; |
104 | 104 | ||
105 | /* | ||
106 | * Public API in OpenSSL that we only want to use internally. | ||
107 | */ | ||
108 | |||
109 | int DH_check_params_ex(const DH *dh); | ||
110 | int DH_check_params(const DH *dh, int *flags); | ||
111 | int DH_check_ex(const DH *dh); | ||
112 | int DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key); | ||
113 | |||
114 | __END_HIDDEN_DECLS | 105 | __END_HIDDEN_DECLS |
115 | 106 | ||
116 | #endif /* !HEADER_DH_LOCAL_H */ | 107 | #endif /* !HEADER_DH_LOCAL_H */ |