summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp
diff options
context:
space:
mode:
authortb <>2024-08-31 10:25:38 +0000
committertb <>2024-08-31 10:25:38 +0000
commitdfe0db320ed7b242f95c66b5d0cb7525257a6882 (patch)
tree25c9f27a907b66043fdde3e70d610ed8b539167e /src/lib/libcrypto/evp
parentdf13e5b090fdd7526e1f2c4242ff8deb5a98c783 (diff)
downloadopenbsd-dfe0db320ed7b242f95c66b5d0cb7525257a6882.tar.gz
openbsd-dfe0db320ed7b242f95c66b5d0cb7525257a6882.tar.bz2
openbsd-dfe0db320ed7b242f95c66b5d0cb7525257a6882.zip
Remove EVP_PKEY.*attr* API
I ranted enough about this recently. PKCS#12. Microsoft. 'nuff said. ok beck jsing
Diffstat (limited to 'src/lib/libcrypto/evp')
-rw-r--r--src/lib/libcrypto/evp/evp_pkey.c82
1 files changed, 1 insertions, 81 deletions
diff --git a/src/lib/libcrypto/evp/evp_pkey.c b/src/lib/libcrypto/evp/evp_pkey.c
index dcbd51f08d..5bec811060 100644
--- a/src/lib/libcrypto/evp/evp_pkey.c
+++ b/src/lib/libcrypto/evp/evp_pkey.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_pkey.c,v 1.31 2024/08/22 12:21:07 tb Exp $ */ 1/* $OpenBSD: evp_pkey.c,v 1.32 2024/08/31 10:25:38 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 1999. 3 * project 1999.
4 */ 4 */
@@ -140,83 +140,3 @@ error:
140 return NULL; 140 return NULL;
141} 141}
142LCRYPTO_ALIAS(EVP_PKEY2PKCS8); 142LCRYPTO_ALIAS(EVP_PKEY2PKCS8);
143
144/*
145 * XXX - delete all the garbage below in the next bump.
146 */
147
148int
149EVP_PKEY_add1_attr_by_NID(EVP_PKEY *pkey, int nid, int type,
150 const unsigned char *bytes, int len)
151{
152 EVPerror(ERR_R_DISABLED);
153 return 0;
154}
155LCRYPTO_ALIAS(EVP_PKEY_add1_attr_by_NID);
156
157int
158EVP_PKEY_get_attr_count(const EVP_PKEY *key)
159{
160 EVPerror(ERR_R_DISABLED);
161 return 0;
162}
163LCRYPTO_ALIAS(EVP_PKEY_get_attr_count);
164
165int
166EVP_PKEY_get_attr_by_NID(const EVP_PKEY *key, int nid, int lastpos)
167{
168 EVPerror(ERR_R_DISABLED);
169 return -1;
170}
171LCRYPTO_ALIAS(EVP_PKEY_get_attr_by_NID);
172
173int
174EVP_PKEY_get_attr_by_OBJ(const EVP_PKEY *key, const ASN1_OBJECT *obj,
175 int lastpos)
176{
177 EVPerror(ERR_R_DISABLED);
178 return -1;
179}
180LCRYPTO_ALIAS(EVP_PKEY_get_attr_by_OBJ);
181
182X509_ATTRIBUTE *
183EVP_PKEY_get_attr(const EVP_PKEY *key, int loc)
184{
185 EVPerror(ERR_R_DISABLED);
186 return NULL;
187}
188LCRYPTO_ALIAS(EVP_PKEY_get_attr);
189
190X509_ATTRIBUTE *
191EVP_PKEY_delete_attr(EVP_PKEY *key, int loc)
192{
193 EVPerror(ERR_R_DISABLED);
194 return NULL;
195}
196LCRYPTO_ALIAS(EVP_PKEY_delete_attr);
197
198int
199EVP_PKEY_add1_attr(EVP_PKEY *key, X509_ATTRIBUTE *attr)
200{
201 EVPerror(ERR_R_DISABLED);
202 return 0;
203}
204LCRYPTO_ALIAS(EVP_PKEY_add1_attr);
205
206int
207EVP_PKEY_add1_attr_by_OBJ(EVP_PKEY *key, const ASN1_OBJECT *obj, int type,
208 const unsigned char *bytes, int len)
209{
210 EVPerror(ERR_R_DISABLED);
211 return 0;
212}
213LCRYPTO_ALIAS(EVP_PKEY_add1_attr_by_OBJ);
214
215int
216EVP_PKEY_add1_attr_by_txt(EVP_PKEY *key, const char *attrname, int type,
217 const unsigned char *bytes, int len)
218{
219 EVPerror(ERR_R_DISABLED);
220 return 0;
221}
222LCRYPTO_ALIAS(EVP_PKEY_add1_attr_by_txt);