summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509v3.h
diff options
context:
space:
mode:
authortb <>2024-03-02 10:41:46 +0000
committertb <>2024-03-02 10:41:46 +0000
commit7335ca820d86b24a2402fd908472acb741916a8c (patch)
tree2c57c8e32636177c1d48188c8a9e0b0ff6c2421f /src/lib/libcrypto/x509/x509v3.h
parent7b018fc829c78dbce4b7cd8a28aa798b3e03d6a4 (diff)
downloadopenbsd-7335ca820d86b24a2402fd908472acb741916a8c.tar.gz
openbsd-7335ca820d86b24a2402fd908472acb741916a8c.tar.bz2
openbsd-7335ca820d86b24a2402fd908472acb741916a8c.zip
Make X509_PURPOSE opaque
Code using details of X509_PURPOSE does so by using API. So we can make this struct opaque. ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509v3.h')
-rw-r--r--src/lib/libcrypto/x509/x509v3.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/lib/libcrypto/x509/x509v3.h b/src/lib/libcrypto/x509/x509v3.h
index 118a449e82..6b7dc80bf3 100644
--- a/src/lib/libcrypto/x509/x509v3.h
+++ b/src/lib/libcrypto/x509/x509v3.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509v3.h,v 1.27 2024/03/02 10:40:05 tb Exp $ */ 1/* $OpenBSD: x509v3.h,v 1.28 2024/03/02 10:41:46 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 */
@@ -422,15 +422,7 @@ struct ISSUING_DIST_POINT_st {
422#define X509_PURPOSE_DYNAMIC 0x1 422#define X509_PURPOSE_DYNAMIC 0x1
423#define X509_PURPOSE_DYNAMIC_NAME 0x2 423#define X509_PURPOSE_DYNAMIC_NAME 0x2
424 424
425typedef struct x509_purpose_st { 425typedef struct x509_purpose_st X509_PURPOSE;
426 int purpose;
427 int trust; /* Default trust ID */
428 int flags;
429 int (*check_purpose)(const struct x509_purpose_st *, const X509 *, int);
430 char *name;
431 char *sname;
432 void *usr_data;
433} X509_PURPOSE;
434 426
435#define X509_PURPOSE_SSL_CLIENT 1 427#define X509_PURPOSE_SSL_CLIENT 1
436#define X509_PURPOSE_SSL_SERVER 2 428#define X509_PURPOSE_SSL_SERVER 2