CAdES: implement CAdES-BES signed attributes validation #8098
CAdES: implement CAdES-BES signed attributes validation #8098FdaSilvaYY wants to merge 6 commits intoopenssl:masterfrom
Conversation
1b03cee to
19626ad
Compare
|
Apart from my comment, can you have a look at Travis and figure out what's going on? Them are a few too many unresolved symbols for my comfort... |
2584aa5 to
f4cb69e
Compare
Fully fixed, I should not edit my code so late ;) |
f4cb69e to
42a6476
Compare
|
any news about this? |
b20fafe to
53c49de
Compare
|
@maxcuttins : needs a bit of documents about the two added methods. |
fb5c13b to
404e7f3
Compare
404e7f3 to
572f67c
Compare
572f67c to
f715df7
Compare
288d872 to
40ad55c
Compare
02258ec to
739f0d1
Compare
|
Ping @slontis : suggested tests added. |
739f0d1 to
b2befc8
Compare
|
Just a general comment about the generated files..
|
60589f2 to
eea4f13
Compare
|
Fully rebased. CI are all green. |
eea4f13 to
d6a6f12
Compare
|
with make test TESTS=test_x509 V=1 |
Thanks @opensignature. @FdaSilvaYY already reported this issue in #11853. |
crypto/cms/cms_smime.c
Outdated
There was a problem hiding this comment.
Nit: It is weird to "optimize" boolean value into unsigned char. The int type is usually used in place of boolean throughout the OpenSSL code. Also I would slightly prefer using (flags & CMS_CADES) != 0 instead of the ? operator.
crypto/cms/cms_smime.c
Outdated
There was a problem hiding this comment.
Optional: at this point scount == sk_CMS_SignerInfo_num(sinfos) so you could use scount here to optimize.
crypto/ess/ess_lib.c
Outdated
There was a problem hiding this comment.
Would it make sense to just return ASN1_INTEGER_cmp(is->serial, X509_get_serialNumber((X509 *)cert)); here?
crypto/ess/ess_lib.c
Outdated
There was a problem hiding this comment.
This was now changed. You can also use X509v3_cache_extensions() directly.
crypto/ess/ess_lib.c
Outdated
There was a problem hiding this comment.
This will require change to use fetch. Perhaps just mark with TODO 3.0.
crypto/ess/ess_lib.c
Outdated
There was a problem hiding this comment.
This will have to be changed for 3.0 to use fetch. Please add TODO 3.0 comment.
d6a6f12 to
a8354d2
Compare
crypto/ess/ess_lib.c
Outdated
There was a problem hiding this comment.
I think that X509_digest should do this automatically.
for signing certificate V2 and signing certificate extensions. CAdES : lowercase name for now internal methods.
about the two new added methods and two new error codes.
[extended tests]
…ning certificate V2 and signing certificate extensions.
a8354d2 to
b08c846
Compare
|
Travis builds are Green, except usual s390 "no space left" ... |
|
@slontis Can you please re-approve? |
slontis
left a comment
There was a problem hiding this comment.
Reapproved..
Thanks for your patience with this PR @FdaSilvaYY.
|
This pull request is ready to merge. |
for signing certificate V2 and signing certificate extensions. CAdES: lowercase name for now internal methods. crypto/cms: generated file changes. Add some CHANGES entries. [extended tests] Reviewed-by: Shane Lontis <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> (Merged from #8098)
|
Squashed and merged as 9e3c510. Thank you very much for the PR and your patience when waiting for the reviews and merge. |
|
Thanks for all your reviews and remarks. |
CAdES-BES Signature Validation feature following #7893.
The core validation code comes from PR #771. this PR mostly shared and reuse its code.
Checklist