aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openssl/trunk/crypto/x509v3/v3_addr.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/openssl/trunk/crypto/x509v3/v3_addr.h b/openssl/trunk/crypto/x509v3/v3_addr.h
index c10f8400..98fe84dc 100644
--- a/openssl/trunk/crypto/x509v3/v3_addr.h
+++ b/openssl/trunk/crypto/x509v3/v3_addr.h
@@ -71,4 +71,14 @@ DECLARE_ASN1_FUNCTIONS(IPAddressOrRange)
DECLARE_ASN1_FUNCTIONS(IPAddressChoice)
DECLARE_ASN1_FUNCTIONS(IPAddressFamily)
+/*
+ * AFI values, assigned by IANA. It'd be nice to make the AFI
+ * handling code totally generic, but there are too many little things
+ * that would need to be defined for other address families for it to
+ * be worth the trouble.
+ */
+
+#define IANA_AFI_IPV4 1
+#define IANA_AFI_IPv6 2
+
#endif /* HEADER_V3_ADDR_H */