diff options
author | tb <> | 2023-04-25 15:51:04 +0000 |
---|---|---|
committer | tb <> | 2023-04-25 15:51:04 +0000 |
commit | 68c2bc8bf6fc6b90d9a5a1dce5c1215a089a05e5 (patch) | |
tree | 9eb40aa2952b3f97d1104c3cd02a35ca880d1ea4 | |
parent | 57182c04a6bc473851467e3beea25cfa467a1114 (diff) | |
download | openbsd-68c2bc8bf6fc6b90d9a5a1dce5c1215a089a05e5.tar.gz openbsd-68c2bc8bf6fc6b90d9a5a1dce5c1215a089a05e5.tar.bz2 openbsd-68c2bc8bf6fc6b90d9a5a1dce5c1215a089a05e5.zip |
Use proper fix for the recent x400Address issue
From David Benjamin (BoringSSL)
ok beck
-rw-r--r-- | src/lib/libcrypto/x509/x509_genn.c | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509v3.h | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/libcrypto/x509/x509_genn.c b/src/lib/libcrypto/x509/x509_genn.c index 0c03396e0d..556ba81c84 100644 --- a/src/lib/libcrypto/x509/x509_genn.c +++ b/src/lib/libcrypto/x509/x509_genn.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_genn.c,v 1.5 2023/02/16 08:38:17 tb Exp $ */ | 1 | /* $OpenBSD: x509_genn.c,v 1.6 2023/04/25 15:51:04 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 | */ |
@@ -383,8 +383,7 @@ GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b) | |||
383 | return -1; | 383 | return -1; |
384 | switch (a->type) { | 384 | switch (a->type) { |
385 | case GEN_X400: | 385 | case GEN_X400: |
386 | result = ASN1_STRING_cmp((ASN1_STRING *)a->d.x400Address, | 386 | result = ASN1_STRING_cmp(a->d.x400Address, b->d.x400Address); |
387 | (ASN1_STRING *)b->d.x400Address); | ||
388 | break; | 387 | break; |
389 | 388 | ||
390 | case GEN_EDIPARTY: | 389 | case GEN_EDIPARTY: |
diff --git a/src/lib/libcrypto/x509/x509v3.h b/src/lib/libcrypto/x509/x509v3.h index 722eb931e3..43c2a15e0f 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.20 2023/04/24 22:30:17 tb Exp $ */ | 1 | /* $OpenBSD: x509v3.h,v 1.21 2023/04/25 15:51:04 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 | */ |
@@ -190,7 +190,7 @@ typedef struct GENERAL_NAME_st { | |||
190 | OTHERNAME *otherName; /* otherName */ | 190 | OTHERNAME *otherName; /* otherName */ |
191 | ASN1_IA5STRING *rfc822Name; | 191 | ASN1_IA5STRING *rfc822Name; |
192 | ASN1_IA5STRING *dNSName; | 192 | ASN1_IA5STRING *dNSName; |
193 | ASN1_TYPE *x400Address; | 193 | ASN1_STRING *x400Address; |
194 | X509_NAME *directoryName; | 194 | X509_NAME *directoryName; |
195 | EDIPARTYNAME *ediPartyName; | 195 | EDIPARTYNAME *ediPartyName; |
196 | ASN1_IA5STRING *uniformResourceIdentifier; | 196 | ASN1_IA5STRING *uniformResourceIdentifier; |
@@ -202,7 +202,6 @@ typedef struct GENERAL_NAME_st { | |||
202 | X509_NAME *dirn; /* dirn */ | 202 | X509_NAME *dirn; /* dirn */ |
203 | ASN1_IA5STRING *ia5; /* rfc822Name, dNSName, uniformResourceIdentifier */ | 203 | ASN1_IA5STRING *ia5; /* rfc822Name, dNSName, uniformResourceIdentifier */ |
204 | ASN1_OBJECT *rid; /* registeredID */ | 204 | ASN1_OBJECT *rid; /* registeredID */ |
205 | ASN1_TYPE *other; /* x400Address */ | ||
206 | } d; | 205 | } d; |
207 | } GENERAL_NAME; | 206 | } GENERAL_NAME; |
208 | 207 | ||