diff options
author | tb <> | 2023-03-01 11:06:23 +0000 |
---|---|---|
committer | tb <> | 2023-03-01 11:06:23 +0000 |
commit | f40ef68a21f4e2e2df70a67c6d0e4e8707e7b184 (patch) | |
tree | 54f2761a9ca18bb5d1ad97ac71d12c7c09eecf5c | |
parent | 77562fd88800f018480038d21e5c500c783c1be4 (diff) | |
download | openbsd-f40ef68a21f4e2e2df70a67c6d0e4e8707e7b184.tar.gz openbsd-f40ef68a21f4e2e2df70a67c6d0e4e8707e7b184.tar.bz2 openbsd-f40ef68a21f4e2e2df70a67c6d0e4e8707e7b184.zip |
Drop the EVP_CIPHER_METH_get_* functions
Nothing interesting uses them. There's a Debian SSH-1 module and
corresponding ncrack bits. That's not reason enough to have this
garbage.
ok jsing
-rw-r--r-- | src/lib/libcrypto/evp/cipher_method_lib.c | 43 |
1 files changed, 1 insertions, 42 deletions
diff --git a/src/lib/libcrypto/evp/cipher_method_lib.c b/src/lib/libcrypto/evp/cipher_method_lib.c index d08cb86f39..eaf8ceda8e 100644 --- a/src/lib/libcrypto/evp/cipher_method_lib.c +++ b/src/lib/libcrypto/evp/cipher_method_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cipher_method_lib.c,v 1.3 2023/03/01 11:04:17 tb Exp $ */ | 1 | /* $OpenBSD: cipher_method_lib.c,v 1.4 2023/03/01 11:06:23 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Richard Levitte (levitte@openssl.org) for the OpenSSL project | 3 | * Written by Richard Levitte (levitte@openssl.org) for the OpenSSL project |
4 | * 2015. | 4 | * 2015. |
@@ -158,44 +158,3 @@ int EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher, | |||
158 | cipher->ctrl = ctrl; | 158 | cipher->ctrl = ctrl; |
159 | return 1; | 159 | return 1; |
160 | } | 160 | } |
161 | |||
162 | |||
163 | int (*EVP_CIPHER_meth_get_init(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx, | ||
164 | const unsigned char *key, | ||
165 | const unsigned char *iv, | ||
166 | int enc) | ||
167 | { | ||
168 | return cipher->init; | ||
169 | } | ||
170 | int (*EVP_CIPHER_meth_get_do_cipher(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx, | ||
171 | unsigned char *out, | ||
172 | const unsigned char *in, | ||
173 | size_t inl) | ||
174 | { | ||
175 | return cipher->do_cipher; | ||
176 | } | ||
177 | |||
178 | int (*EVP_CIPHER_meth_get_cleanup(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *) | ||
179 | { | ||
180 | return cipher->cleanup; | ||
181 | } | ||
182 | |||
183 | int (*EVP_CIPHER_meth_get_set_asn1_params(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *, | ||
184 | ASN1_TYPE *) | ||
185 | { | ||
186 | return cipher->set_asn1_parameters; | ||
187 | } | ||
188 | |||
189 | int (*EVP_CIPHER_meth_get_get_asn1_params(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *, | ||
190 | ASN1_TYPE *) | ||
191 | { | ||
192 | return cipher->get_asn1_parameters; | ||
193 | } | ||
194 | |||
195 | int (*EVP_CIPHER_meth_get_ctrl(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *, | ||
196 | int type, int arg, | ||
197 | void *ptr) | ||
198 | { | ||
199 | return cipher->ctrl; | ||
200 | } | ||
201 | |||