Skip to content

STORE search capability#2688

Closed
levitte wants to merge 12 commits intoopenssl:masterfrom
levitte:store2-search-capability
Closed

STORE search capability#2688
levitte wants to merge 12 commits intoopenssl:masterfrom
levitte:store2-search-capability

Conversation

@levitte
Copy link
Member

@levitte levitte commented Feb 20, 2017

Checklist
  • documentation is added or updated
  • tests are added or updated
Description of change

This is an add-on to #3542, to give the possibility to extract specific data from a store. Two new capabilities are added, one is to get back a specific data type (cert, CRL, key, ...), the other is to search for data given specific criteria (X.509 name, issuer+serial, ...).

@levitte
Copy link
Member Author

levitte commented Feb 20, 2017

This add-on will help integrate STORE with other parts of libcrypto, such as X509_LOOKUP / X509_STORE.

@levitte levitte force-pushed the store2-search-capability branch from 697e40f to 7b2c451 Compare February 20, 2017 02:08
@levitte levitte changed the title Store search capability STORE search capability Feb 20, 2017
@levitte levitte force-pushed the store2-search-capability branch 5 times, most recently from 94cf9d2 to 3cbc9d8 Compare February 21, 2017 13:07
@levitte levitte force-pushed the store2-search-capability branch 8 times, most recently from 360c969 to 126055b Compare February 25, 2017 23:31
@levitte levitte added the branch: master Applies to master branch label Feb 25, 2017
@levitte levitte self-assigned this Feb 25, 2017
@levitte levitte force-pushed the store2-search-capability branch 8 times, most recently from e277603 to 1a096d4 Compare March 2, 2017 22:51
@levitte levitte force-pushed the store2-search-capability branch 2 times, most recently from 1781a5f to ceaf118 Compare March 16, 2017 12:46
@levitte levitte force-pushed the store2-search-capability branch from 2f6266a to e2f5ff7 Compare February 22, 2018 11:24
@levitte
Copy link
Member Author

levitte commented Feb 22, 2018

Everything that needed squashing is now squashed. Just for kicks, I also triggered a extended tests.

Final review, please?

return NULL;
}

if (digest != NULL && len != (size_t)EVP_MD_size(digest)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EVP_MD_size can return -1. Actually this only happens (at the moment) if digest == NULL which you explicitly check for. But are we entitled to expect that never to change? I.e. could it return -1 in other circumstances in the future? I kind of think we should do an explicit check for a < 0 result.

Copy link
Member Author

@levitte levitte Feb 22, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that when the day comes and that happens, we deal with it then. In my mind, that would be a terrible breach of the EVP_MD API, or someone has created a terribly bad EVP_MD instance. Either way, that would lead to breakage all over the place, not just here, and I suspect we'd see the test suite go up in flames at least in places.

So, errrr, I don't think there's a great risk, and see no reason for such a check

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I'm not sure I agree with you, but I don't think it is important enough to hold this up.

@levitte
Copy link
Member Author

levitte commented Feb 23, 2018

Merged! 4eefdbd to 0764e41

Thank you!

@levitte levitte closed this Feb 23, 2018
levitte added a commit that referenced this pull request Feb 23, 2018
levitte added a commit that referenced this pull request Feb 23, 2018
levitte added a commit that referenced this pull request Feb 23, 2018
levitte added a commit that referenced this pull request Feb 23, 2018
levitte added a commit that referenced this pull request Feb 23, 2018
levitte added a commit that referenced this pull request Feb 23, 2018
Reviewed-by: Matt Caswell <[email protected]>
(Merged from #2688)
levitte added a commit that referenced this pull request Feb 23, 2018
levitte added a commit that referenced this pull request Feb 23, 2018
levitte added a commit that referenced this pull request Feb 23, 2018
levitte added a commit that referenced this pull request Feb 23, 2018
Reviewed-by: Matt Caswell <[email protected]>
(Merged from #2688)
levitte added a commit that referenced this pull request Feb 23, 2018
Reviewed-by: Matt Caswell <[email protected]>
(Merged from #2688)
levitte added a commit that referenced this pull request Feb 23, 2018
[extended tests]

Reviewed-by: Matt Caswell <[email protected]>
(Merged from #2688)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch: master Applies to master branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants