Skip to content

Commit 133ed5f

Browse files
authored
Fix rebase (#541)
IB-7668 Signed-off-by: Raul Metsma <[email protected]>
1 parent aad9c4e commit 133ed5f

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

RELEASE-NOTES.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1+
Libdigidocpp library [3.16.0](https://github.com/open-eid/libdigidocpp/releases/tag/v3.16.0) release notes
2+
--------------------------------------
3+
- Update libraries and platform support (#530, #477, #534, #535)
4+
- Improve signature and container compatibility (#528)
5+
- Other fixes and optimizations (#529, #533, #532, #536)
6+
- Removed time-mark signature creation support (#527, #539)
7+
8+
[Full Changelog](https://github.com/open-eid/libdigidocpp/compare/v3.15.0...v3.16.0)
9+
110
Libdigidocpp library [3.15.0](https://github.com/open-eid/libdigidocpp/releases/tag/v3.15.0) release notes
211
--------------------------------------
3-
- Update libraries and platform support (#525, #522, #515, #503, #511, #514, #516, #517, #523, #505, #530, #477)
12+
- Update libraries and platform support (#525, #522, #515, #503, #511, #514, #516, #517, #523, #505)
413
- Improve code quality and documentation (#526, #521, #524, #520, #501)
5-
- Improve signature and container compatibility (#506, #504, #502, #491, #528)
6-
- Other fixes and optimizations (#435, #481, #508, #433, #519, #497, #535, #533, #532)
7-
- Removed time-mark signature creation support (#527, #539)
14+
- Improve signature and container compatibility (#506, #504, #502, #491)
15+
- Other fixes and optimizations (#435, #481, #508, #433, #519, #497)
816

917
[Full Changelog](https://github.com/open-eid/libdigidocpp/compare/v3.14.11...v3.15.0)
1018

src/crypto/OCSP.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,7 @@ OCSP::OCSP(const X509Cert &cert, const X509Cert &issuer)
7676
if(!OCSP_request_add0_id(req.get(), certId))
7777
THROW_OPENSSLEXCEPTION("Failed to add certificate ID to OCSP request.");
7878

79-
SCOPE(ASN1_OCTET_STRING, st, ASN1_OCTET_STRING_new());
80-
ASN1_OCTET_STRING_set(st.get(), nullptr, 20);
81-
RAND_bytes(st->data, st->length);
82-
83-
SCOPE(X509_EXTENSION, ex, X509_EXTENSION_create_by_NID(nullptr, NID_id_pkix_OCSP_Nonce, 0, st.get()));
84-
if(!OCSP_REQUEST_add_ext(req.get(), ex.get(), 0))
79+
if(!OCSP_request_add1_nonce(req.get(), nullptr, 32)) // rfc8954: SIZE(1..32)
8580
THROW_OPENSSLEXCEPTION("Failed to add NONCE to OCSP request.");
8681

8782
Connect::Result result = Connect(url, "POST").exec({

0 commit comments

Comments
 (0)