Skip to content

Commit

Permalink
Fix rebase (#541)
Browse files Browse the repository at this point in the history
IB-7668

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored Jun 27, 2023
1 parent aad9c4e commit 133ed5f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
16 changes: 12 additions & 4 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
Libdigidocpp library [3.16.0](https://github.com/open-eid/libdigidocpp/releases/tag/v3.16.0) release notes
--------------------------------------
- Update libraries and platform support (#530, #477, #534, #535)
- Improve signature and container compatibility (#528)
- Other fixes and optimizations (#529, #533, #532, #536)
- Removed time-mark signature creation support (#527, #539)

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

Libdigidocpp library [3.15.0](https://github.com/open-eid/libdigidocpp/releases/tag/v3.15.0) release notes
--------------------------------------
- Update libraries and platform support (#525, #522, #515, #503, #511, #514, #516, #517, #523, #505, #530, #477)
- Update libraries and platform support (#525, #522, #515, #503, #511, #514, #516, #517, #523, #505)
- Improve code quality and documentation (#526, #521, #524, #520, #501)
- Improve signature and container compatibility (#506, #504, #502, #491, #528)
- Other fixes and optimizations (#435, #481, #508, #433, #519, #497, #535, #533, #532)
- Removed time-mark signature creation support (#527, #539)
- Improve signature and container compatibility (#506, #504, #502, #491)
- Other fixes and optimizations (#435, #481, #508, #433, #519, #497)

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

Expand Down
7 changes: 1 addition & 6 deletions src/crypto/OCSP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,7 @@ OCSP::OCSP(const X509Cert &cert, const X509Cert &issuer)
if(!OCSP_request_add0_id(req.get(), certId))
THROW_OPENSSLEXCEPTION("Failed to add certificate ID to OCSP request.");

SCOPE(ASN1_OCTET_STRING, st, ASN1_OCTET_STRING_new());
ASN1_OCTET_STRING_set(st.get(), nullptr, 20);
RAND_bytes(st->data, st->length);

SCOPE(X509_EXTENSION, ex, X509_EXTENSION_create_by_NID(nullptr, NID_id_pkix_OCSP_Nonce, 0, st.get()));
if(!OCSP_REQUEST_add_ext(req.get(), ex.get(), 0))
if(!OCSP_request_add1_nonce(req.get(), nullptr, 32)) // rfc8954: SIZE(1..32)
THROW_OPENSSLEXCEPTION("Failed to add NONCE to OCSP request.");

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

0 comments on commit 133ed5f

Please sign in to comment.