aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2023-02-06 21:16:39 -0600
committerBrent Cook <busterb@gmail.com>2023-02-06 21:16:39 -0600
commit30dc760ed1d7c70766b135500950d8ca9d17b13a (patch)
tree62e8b3459b4d40b34bc48c892f4c135307613c57
parentc34880923b06b557c70687f4d7153f760667b719 (diff)
downloadportable-30dc760ed1d7c70766b135500950d8ca9d17b13a.tar.gz
portable-30dc760ed1d7c70766b135500950d8ca9d17b13a.tar.bz2
portable-30dc760ed1d7c70766b135500950d8ca9d17b13a.zip
add updated patch
-rw-r--r--patches/x509_genn.c.diff17
-rwxr-xr-xupdate.sh2
2 files changed, 19 insertions, 0 deletions
diff --git a/patches/x509_genn.c.diff b/patches/x509_genn.c.diff
new file mode 100644
index 0000000..1c6ea8c
--- /dev/null
+++ b/patches/x509_genn.c.diff
@@ -0,0 +1,17 @@
1Index: lib/libcrypto/x509/x509_genn.c
2===================================================================
3RCS file: /cvs/src/lib/libcrypto/x509/x509_genn.c,v
4retrieving revision 1.2
5diff -u -p -r1.2 x509_genn.c
6--- lib/libcrypto/x509/x509_genn.c 8 Dec 2020 15:06:42 -0000 1.2
7+++ lib/libcrypto/x509/x509_genn.c 24 Jan 2023 09:43:06 -0000
8@@ -366,7 +366,8 @@ GENERAL_NAME_cmp(GENERAL_NAME *a, GENERA
9 return -1;
10 switch (a->type) {
11 case GEN_X400:
12- result = ASN1_TYPE_cmp(a->d.x400Address, b->d.x400Address);
13+ result = ASN1_STRING_cmp((ASN1_STRING *)a->d.x400Address,
14+ (ASN1_STRING *)b->d.x400Address);
15 break;
16
17 case GEN_EDIPARTY:
diff --git a/update.sh b/update.sh
index 3aea129..64f7189 100755
--- a/update.sh
+++ b/update.sh
@@ -358,6 +358,8 @@ fi
358for i in patches/*.patch; do 358for i in patches/*.patch; do
359 $PATCH -p0 < $i 359 $PATCH -p0 < $i
360done 360done
361(cd crypto
362$PATCH -p2 < ../patches/x509_genn.c.diff)
361 363
362# copy manpages 364# copy manpages
363echo "copying manpages" 365echo "copying manpages"