CMP implementation, incremental PR chunk 4: CMP context/parameters and utilities#9107
CMP implementation, incremental PR chunk 4: CMP context/parameters and utilities#9107Akretsch wants to merge 39 commits intoopenssl:masterfrom
Conversation
394e744 to
d1ef63b
Compare
|
BTW, I'm on vacation for the next two weeks (until June 23rd), |
02f7edb to
5f1ab62
Compare
|
rebased to openssl:master; fix conflicts in util/libcrypto.num and util/private.num |
5f1ab62 to
d3c0bc3
Compare
f59db4a to
b66c4d8
Compare
|
@Akretsch has rebased this PR again such that currently there are no conflicts any more. |
|
@FdaSilvaYY, thanks for your comments about 16 days ago. |
I'm Ok with answers, nothing more to add. |
|
@mattcaswell, on May 8th you suggested for the preview of this chunk (mpeylo#178 (comment)) to use the trace API for CMP logging (info/warning/error etc. output). So I'm not sure whether it's worth continuing with the extracted enhancements of the trace API I proposed in PR #9110. We're currently re-working this aspect of our CMP contribution such that warnings etc. are buffered in the CMP context and can later be output, using any means, at application level. |
Ok, if the trace API is not viable then we need a rethink.
Perhaps not.
Ok - that sounds interesting. I'd like to understand that proposal a little better. |
|
Thanks @mattcaswell for your swift response.
So I tend to close that PR unless anyone objects there. |
We plan for two things depending on the source/type of warning/info.
Of course it would be simpler to output warnings and infos right away (as we did so far, using a callback stored in the CMP_CTX) such that they do not need to be buffered, but the crypto lib seems not to support this, maybe because the idea is that the lib itself should be silent or because warnings are not considered of interest. Another option could be to extend the existing error queue mechanism to support warnings (and possibly further levels of severity/verbosity). What do you think? |
|
Hmm, I just realized that buffering status info messages for output after return is not always adequate. |
|
Ok, for timely output (such as Therefore I suppose the solutions sketched above should be sufficient and not hard to implement. |
It sounds reasonable to me.
I'm unsure about that option. Probably it strays a little far from the original scope of what we are attempting to do here. |
|
A technique used in several other parts of OpenSSL is to allow the application to register a callback that gets progress information. For example while generating prime numbers... |
Yeah, this is what we have been doing so far, but then Matt suggested using the trace API. |
|
For what my opinion is worth, I think using common practice rather than a mix of solutions will be easier for consumers to understand. |
|
@mattcaswell, would it be ok for you if we revert to the original version, |
|
@mattcaswell, can we go back to using the CMP-specific logging callback? |
…CMP_CTX_set0_trustedStore etc.) and rename it to 'trusted'
…ments of cmp_util.c
…t readability in cmp_ctx_test.c
…rtains to the master branch
58849be to
97faa79
Compare
|
Pushed to master! Thanks all! |
Also includes CRMF (RFC 4211) and HTTP transfer (RFC 6712)
CMP and CRMF API is added to libcrypto, and the "cmp" app to the openssl CLI.
Adds extensive man pages and tests. Integration into build scripts.
Incremental pull request based on OpenSSL commit 8869ad4 of 2019-04-02
4th chunk: CMP context/parameters and utilities
in crypto/cmp/cmp_ctx.c, crypto/cmp/cmp_util.c, and related files
Reviewed-by: Bernd Edlinger <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from #9107)
|
65-test_cmp_ctx is causing some test failures on some local test machines when enable-trace option is specified. 1..1 =============== /usr/local/bin/perl ../Configure --prefix=/home/nse/workspace/openssl-linux_x64_GCC/install shared enable-trace linux-x86_64 Perl information: Enabled features: Disabled features: Config target attributes: Recorded environment: Makevars: |
|
@slontis, I wonder why your test failure issue pops up here, after this PR has already been merged. |
|
No problems.. I will debug it on one of the machines it fails on (hopefully without using printf :) ) |
Certificate Management Protocol (CMP, RFC 4210) extension to OpenSSL
Also includes CRMF (RFC 4211) and HTTP transfer (RFC 6712)
CMP and CRMF API is added to libcrypto, and the "cmp" app to the openssl CLI.
Adds extensive man pages and tests. Integration into build scripts.
Incremental pull request based on OpenSSL commit 8869ad4 of 2019-04-02
4th chunk: CMP context/parameters and utilities
in
crypto/cmp/cmp_ctx.c,crypto/cmp/cmp_util.c, and related filesChecklist