diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_trs.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_trs.c | 81 |
1 files changed, 1 insertions, 80 deletions
diff --git a/src/lib/libcrypto/x509/x509_trs.c b/src/lib/libcrypto/x509/x509_trs.c index a6fc4d61c5..774ce584b8 100644 --- a/src/lib/libcrypto/x509/x509_trs.c +++ b/src/lib/libcrypto/x509/x509_trs.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_trs.c,v 1.40 2024/01/13 19:57:38 tb Exp $ */ | 1 | /* $OpenBSD: x509_trs.c,v 1.41 2024/03/02 10:48:17 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 | */ |
@@ -219,82 +219,3 @@ X509_check_trust(X509 *x, int trust_id, int flags) | |||
219 | return trust->check_trust((X509_TRUST *)trust, x, flags); | 219 | return trust->check_trust((X509_TRUST *)trust, x, flags); |
220 | } | 220 | } |
221 | LCRYPTO_ALIAS(X509_check_trust); | 221 | LCRYPTO_ALIAS(X509_check_trust); |
222 | |||
223 | /* | ||
224 | * Remove all the functions below in the next bump. | ||
225 | */ | ||
226 | |||
227 | int | ||
228 | (*X509_TRUST_set_default(int (*trust)(int , X509 *, int)))(int, X509 *, int) | ||
229 | { | ||
230 | X509error(ERR_R_DISABLED); | ||
231 | return NULL; | ||
232 | } | ||
233 | LCRYPTO_ALIAS(X509_TRUST_set_default); | ||
234 | |||
235 | int | ||
236 | X509_TRUST_get_count(void) | ||
237 | { | ||
238 | return X509_TRUST_COUNT; | ||
239 | } | ||
240 | LCRYPTO_ALIAS(X509_TRUST_get_count); | ||
241 | |||
242 | X509_TRUST * | ||
243 | X509_TRUST_get0(int idx) | ||
244 | { | ||
245 | X509error(ERR_R_DISABLED); | ||
246 | return NULL; | ||
247 | } | ||
248 | LCRYPTO_ALIAS(X509_TRUST_get0); | ||
249 | |||
250 | int | ||
251 | X509_TRUST_get_by_id(int id) | ||
252 | { | ||
253 | X509error(ERR_R_DISABLED); | ||
254 | return -1; | ||
255 | } | ||
256 | LCRYPTO_ALIAS(X509_TRUST_get_by_id); | ||
257 | |||
258 | int | ||
259 | X509_TRUST_set(int *t, int trust) | ||
260 | { | ||
261 | X509error(ERR_R_DISABLED); | ||
262 | return 0; | ||
263 | } | ||
264 | LCRYPTO_ALIAS(X509_TRUST_set); | ||
265 | |||
266 | int | ||
267 | X509_TRUST_add(int id, int flags, int (*ck)(X509_TRUST *, X509 *, int), | ||
268 | const char *name, int arg1, void *arg2) | ||
269 | { | ||
270 | X509error(ERR_R_DISABLED); | ||
271 | return 0; | ||
272 | } | ||
273 | LCRYPTO_ALIAS(X509_TRUST_add); | ||
274 | |||
275 | void | ||
276 | X509_TRUST_cleanup(void) | ||
277 | { | ||
278 | } | ||
279 | LCRYPTO_ALIAS(X509_TRUST_cleanup); | ||
280 | |||
281 | int | ||
282 | X509_TRUST_get_flags(const X509_TRUST *xp) | ||
283 | { | ||
284 | return xp->flags; | ||
285 | } | ||
286 | LCRYPTO_ALIAS(X509_TRUST_get_flags); | ||
287 | |||
288 | char * | ||
289 | X509_TRUST_get0_name(const X509_TRUST *xp) | ||
290 | { | ||
291 | return xp->name; | ||
292 | } | ||
293 | LCRYPTO_ALIAS(X509_TRUST_get0_name); | ||
294 | |||
295 | int | ||
296 | X509_TRUST_get_trust(const X509_TRUST *xp) | ||
297 | { | ||
298 | return xp->trust; | ||
299 | } | ||
300 | LCRYPTO_ALIAS(X509_TRUST_get_trust); | ||