With API and other users internal, this struct can now go.
ok jsing
-/* $OpenBSD: x509.h,v 1.108 2024/03/02 10:49:03 tb Exp $ */
+/* $OpenBSD: x509.h,v 1.109 2024/03/02 10:50:26 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
DECLARE_STACK_OF(X509)
-/* This is used for a table of trust checking functions */
-
-typedef struct x509_trust_st {
- int trust;
- int flags;
- int (*check_trust)(struct x509_trust_st *, X509 *, int);
- char *name;
- int arg1;
- void *arg2;
-} X509_TRUST;
-
/* standard trust ids */
/* OpenSSL changed this to 0 */
-/* $OpenBSD: x509_trs.c,v 1.41 2024/03/02 10:48:17 tb Exp $ */
+/* $OpenBSD: x509_trs.c,v 1.42 2024/03/02 10:50:26 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
#include "crypto_internal.h"
#include "x509_local.h"
+typedef struct x509_trust_st {
+ int trust;
+ int flags;
+ int (*check_trust)(struct x509_trust_st *, X509 *, int);
+ char *name;
+ int arg1;
+ void *arg2;
+} X509_TRUST;
+
static int
obj_trust(int id, X509 *x, int flags)
{