summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-03-01 11:06:23 +0000
committertb <>2023-03-01 11:06:23 +0000
commit3cd3610d7a0a3831e67527646dc23c804888c01f (patch)
tree54f2761a9ca18bb5d1ad97ac71d12c7c09eecf5c /src
parentca0ea2a6738707d553f57852e8d5b379c64d8a97 (diff)
downloadopenbsd-3cd3610d7a0a3831e67527646dc23c804888c01f.tar.gz
openbsd-3cd3610d7a0a3831e67527646dc23c804888c01f.tar.bz2
openbsd-3cd3610d7a0a3831e67527646dc23c804888c01f.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
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/evp/cipher_method_lib.c43
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
163int (*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}
170int (*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
178int (*EVP_CIPHER_meth_get_cleanup(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *)
179{
180 return cipher->cleanup;
181}
182
183int (*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
189int (*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
195int (*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