summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509.h
diff options
context:
space:
mode:
authorjob <>2021-09-02 12:41:44 +0000
committerjob <>2021-09-02 12:41:44 +0000
commit3ed206d7bde4191b37ba53a167ddc2090f5e4860 (patch)
tree68881b07659cc9e2b17902a5156f430f2154ecf8 /src/lib/libcrypto/x509/x509.h
parente62cf7c0e3daad29f81cae909a92d8769558bd57 (diff)
downloadopenbsd-3ed206d7bde4191b37ba53a167ddc2090f5e4860.tar.gz
openbsd-3ed206d7bde4191b37ba53a167ddc2090f5e4860.tar.bz2
openbsd-3ed206d7bde4191b37ba53a167ddc2090f5e4860.zip
Lay groundwork to support X.509 v3 extensions for IP Addresses and AS Identifiers
These extensions are defined in RFC 3779 and used in the RPKI (RFC 6482, RFC 8360). Imported from OpenSSL 1.1.1j (aaf2fcb575cdf6491b98ab4829abf78a3dec8402b8b81efc8f23c00d443981bf) This changeset is a no-op, as there are 10+ issues and at least 2 security issues. Work will continue in-tree. OK tb@, discussed with beck@
Diffstat (limited to 'src/lib/libcrypto/x509/x509.h')
-rw-r--r--src/lib/libcrypto/x509/x509.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h
index f135ee9a86..5b25c6e4b1 100644
--- a/src/lib/libcrypto/x509/x509.h
+++ b/src/lib/libcrypto/x509/x509.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509.h,v 1.75 2021/03/31 16:51:06 tb Exp $ */ 1/* $OpenBSD: x509.h,v 1.76 2021/09/02 12:41:44 job Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -287,6 +287,10 @@ struct x509_st
287 STACK_OF(DIST_POINT) *crldp; 287 STACK_OF(DIST_POINT) *crldp;
288 STACK_OF(GENERAL_NAME) *altname; 288 STACK_OF(GENERAL_NAME) *altname;
289 NAME_CONSTRAINTS *nc; 289 NAME_CONSTRAINTS *nc;
290#ifndef OPENSSL_NO_RFC3779
291 STACK_OF(IPAddressFamily) *rfc3779_addr;
292 struct ASIdentifiers_st *rfc3779_asid;
293#endif
290#ifndef OPENSSL_NO_SHA 294#ifndef OPENSSL_NO_SHA
291 unsigned char sha1_hash[SHA_DIGEST_LENGTH]; 295 unsigned char sha1_hash[SHA_DIGEST_LENGTH];
292#endif 296#endif