diff options
-rw-r--r-- | src/lib/libcrypto/x509/x509_bitst.c | 8 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509v3.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/x509/x509_bitst.c b/src/lib/libcrypto/x509/x509_bitst.c index 479874ddb5..2bc4f9911a 100644 --- a/src/lib/libcrypto/x509/x509_bitst.c +++ b/src/lib/libcrypto/x509/x509_bitst.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_bitst.c,v 1.7 2024/08/31 10:03:03 tb Exp $ */ | 1 | /* $OpenBSD: x509_bitst.c,v 1.8 2024/08/31 10:23:13 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 | */ |
@@ -65,7 +65,7 @@ | |||
65 | 65 | ||
66 | #include "x509_local.h" | 66 | #include "x509_local.h" |
67 | 67 | ||
68 | static BIT_STRING_BITNAME ns_cert_type_table[] = { | 68 | static const BIT_STRING_BITNAME ns_cert_type_table[] = { |
69 | {0, "SSL Client", "client"}, | 69 | {0, "SSL Client", "client"}, |
70 | {1, "SSL Server", "server"}, | 70 | {1, "SSL Server", "server"}, |
71 | {2, "S/MIME", "email"}, | 71 | {2, "S/MIME", "email"}, |
@@ -77,7 +77,7 @@ static BIT_STRING_BITNAME ns_cert_type_table[] = { | |||
77 | {-1, NULL, NULL} | 77 | {-1, NULL, NULL} |
78 | }; | 78 | }; |
79 | 79 | ||
80 | static BIT_STRING_BITNAME key_usage_type_table[] = { | 80 | static const BIT_STRING_BITNAME key_usage_type_table[] = { |
81 | {0, "Digital Signature", "digitalSignature"}, | 81 | {0, "Digital Signature", "digitalSignature"}, |
82 | {1, "Non Repudiation", "nonRepudiation"}, | 82 | {1, "Non Repudiation", "nonRepudiation"}, |
83 | {2, "Key Encipherment", "keyEncipherment"}, | 83 | {2, "Key Encipherment", "keyEncipherment"}, |
@@ -90,7 +90,7 @@ static BIT_STRING_BITNAME key_usage_type_table[] = { | |||
90 | {-1, NULL, NULL} | 90 | {-1, NULL, NULL} |
91 | }; | 91 | }; |
92 | 92 | ||
93 | static BIT_STRING_BITNAME crl_reasons[] = { | 93 | static const BIT_STRING_BITNAME crl_reasons[] = { |
94 | {CRL_REASON_UNSPECIFIED, "Unspecified", "unspecified"}, | 94 | {CRL_REASON_UNSPECIFIED, "Unspecified", "unspecified"}, |
95 | {CRL_REASON_KEY_COMPROMISE, "Key Compromise", "keyCompromise"}, | 95 | {CRL_REASON_KEY_COMPROMISE, "Key Compromise", "keyCompromise"}, |
96 | {CRL_REASON_CA_COMPROMISE, "CA Compromise", "CACompromise"}, | 96 | {CRL_REASON_CA_COMPROMISE, "CA Compromise", "CACompromise"}, |
diff --git a/src/lib/libcrypto/x509/x509v3.h b/src/lib/libcrypto/x509/x509v3.h index c59153496c..166ac66a28 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.34 2024/08/31 10:06:39 tb Exp $ */ | 1 | /* $OpenBSD: x509v3.h,v 1.35 2024/08/31 10:23:13 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 | */ |
@@ -117,7 +117,7 @@ struct v3_ext_method { | |||
117 | X509V3_EXT_I2R i2r; | 117 | X509V3_EXT_I2R i2r; |
118 | X509V3_EXT_R2I r2i; | 118 | X509V3_EXT_R2I r2i; |
119 | 119 | ||
120 | void *usr_data; /* Any extension specific data */ | 120 | const void *usr_data; /* Any extension specific data */ |
121 | }; | 121 | }; |
122 | 122 | ||
123 | struct v3_ext_ctx { | 123 | struct v3_ext_ctx { |