summarylogtreecommitdiffstats
path: root/botan1_10_17-latest-commits.patch
blob: 663c1d7a5b19b1d48a0c4952a7c39804d548ddfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
From a67e20f2053683095ed1bcd57220dd6ee8fd82c6 Mon Sep 17 00:00:00 2001
From: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Wed, 4 Oct 2017 01:50:33 +0300
Subject: [PATCH 1/4] gost_3411: use correct type for build to pass

---
 src/hash/gost_3411/gost_3411.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hash/gost_3411/gost_3411.cpp b/src/hash/gost_3411/gost_3411.cpp
index 97aa399c8..7ca22dcd6 100644
--- a/src/hash/gost_3411/gost_3411.cpp
+++ b/src/hash/gost_3411/gost_3411.cpp
@@ -91,7 +91,7 @@ void GOST_34_11::compress_n(const byte input[], size_t blocks)
          // P transformation
          for(size_t k = 0; k != 4; ++k)
             {
-            const uint64_t UVk = U[k] ^ V[k];
+            const u64bit UVk = U[k] ^ V[k];
             for(size_t l = 0; l != 8; ++l)
                key[4*l+k] = get_byte(l, UVk);
             }
-- 
2.44.0


From e61a5f56fb404db3655909be4ce23c3a816cbb60 Mon Sep 17 00:00:00 2001
From: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Wed, 4 Oct 2017 22:16:31 +0300
Subject: [PATCH 2/4] openssl: support libressl

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
---
 src/engine/openssl/ossl_bc.cpp | 2 +-
 src/engine/openssl/ossl_md.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/engine/openssl/ossl_bc.cpp b/src/engine/openssl/ossl_bc.cpp
index 74660c7b5..cb184c202 100644
--- a/src/engine/openssl/ossl_bc.cpp
+++ b/src/engine/openssl/ossl_bc.cpp
@@ -8,7 +8,7 @@
 #include <botan/internal/openssl_engine.h>
 #include <openssl/evp.h>
 
-#if OPENSSL_VERSION_NUMBER >= 0x10100000
+#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
   #error "OpenSSL 1.1 API not supported in Botan 1.10, upgrade to 2.x"
 #endif
 
diff --git a/src/engine/openssl/ossl_md.cpp b/src/engine/openssl/ossl_md.cpp
index 2fcb2b0e5..9c43d616e 100644
--- a/src/engine/openssl/ossl_md.cpp
+++ b/src/engine/openssl/ossl_md.cpp
@@ -8,7 +8,7 @@
 #include <botan/internal/openssl_engine.h>
 #include <openssl/evp.h>
 
-#if OPENSSL_VERSION_NUMBER >= 0x10100000
+#if OPENSSL_VERSION_NUMBER >= 0x10100000 && !defined(LIBRESSL_VERSION_NUMBER)
   #error "OpenSSL 1.1 API not supported in Botan 1.10, upgrade to 2.x"
 #endif
 
-- 
2.44.0


From 7cad4b6bb4dd417adbf0d5a238ff326e0c32d997 Mon Sep 17 00:00:00 2001
From: Jack Lloyd <jack@randombit.net>
Date: Tue, 14 Nov 2017 07:45:01 -0500
Subject: [PATCH 3/4] Correct creation of CRLs using intermediate CAs

GH #1242
---
 src/cert/x509ca/x509_ca.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cert/x509ca/x509_ca.cpp b/src/cert/x509ca/x509_ca.cpp
index 40f2e3b3a..5327605ea 100644
--- a/src/cert/x509ca/x509_ca.cpp
+++ b/src/cert/x509ca/x509_ca.cpp
@@ -183,7 +183,7 @@ X509_CRL X509_CA::make_crl(const std::vector<CRL_Entry>& revoked,
          DER_Encoder().start_cons(SEQUENCE)
             .encode(X509_CRL_VERSION-1)
             .encode(ca_sig_algo)
-            .encode(cert.issuer_dn())
+            .encode(cert.subject_dn())
             .encode(X509_Time(current_time))
             .encode(X509_Time(current_time + next_update))
             .encode_if(revoked.size() > 0,
-- 
2.44.0


From 1f7422a386a52db239cb2c797097ae2dcaea8bea Mon Sep 17 00:00:00 2001
From: Jack Lloyd <jack@randombit.net>
Date: Tue, 7 Aug 2018 12:41:02 -0400
Subject: [PATCH 4/4] Update readme and release notes

---
 doc/log.txt | 9 +++++++++
 readme.txt  | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/doc/log.txt b/doc/log.txt
index b2d75e106..43e7190f8 100644
--- a/doc/log.txt
+++ b/doc/log.txt
@@ -7,6 +7,15 @@ Release Notes
 Series 1.10
 ----------------------------------------
 
+Version 1.10.18, Not Yet Released
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+* Avoid using ``cstdint`` types for C++98 compatability. (GH #1234)
+
+* Supporting compiling using LibreSSL (GH #1236)
+
+* Correct creation of CRLs using intermediate CA (GH #1242)
+
 Version 1.10.17, 1.10.17
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
diff --git a/readme.txt b/readme.txt
index d3f5c6781..074eaaa7c 100644
--- a/readme.txt
+++ b/readme.txt
@@ -1,6 +1,6 @@
 
 This branch (1.10) of Botan is only supported for security fixes until
-the end of 2017. Please upgrade to 2.x as soon as possible.
+the end of 2018. Please upgrade to 2.x as soon as possible.
 
 
 Botan is a C++ library for performing a wide variety of cryptographic
-- 
2.44.0