Skip to content

ESSCertIDv2 Update for RFC 3161 (ts module)#771

Closed
kleinmrk wants to merge 12 commits intoopenssl:masterfrom
kleinmrk:cert_id_v2
Closed

ESSCertIDv2 Update for RFC 3161 (ts module)#771
kleinmrk wants to merge 12 commits intoopenssl:masterfrom
kleinmrk:cert_id_v2

Conversation

@kleinmrk
Copy link
Contributor

@kleinmrk kleinmrk commented Mar 1, 2016

This patch introduces new .conf variables (ess_cert_id_v2 and ess_cert_id_v2_alg) and adds support for ESSCertIDv2 to ts module as defined in RFC5816, thus it removes another hardcoded SHA-1 usage from ts module.

Original behavior (ESSCertID) is preserved.

@richsalz
Copy link
Contributor

richsalz commented Mar 1, 2016

Do we need both? Just asking because I don't know anything about TS.

@kleinmrk
Copy link
Contributor Author

kleinmrk commented Mar 1, 2016

Yes, we do need both since it is written in RFC5816 that the certificate identifier is either ESSCertID or ESSCertIDv2.

@richsalz
Copy link
Contributor

richsalz commented Mar 1, 2016

Thanks for the clarification.

Copy link
Contributor

Choose a reason for hiding this comment

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

do we really need these define's?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have simplified the logic and now only one .conf variable is needed.

@richsalz
Copy link
Contributor

richsalz commented Mar 2, 2016

a few minor style issues. I didn't always comment on all of them, so please make sure to check that there's a blank line after variable declarations and don't use ! for pointer checking.
rebase, squash, repost and then I can plus-one this.

@kleinmrk
Copy link
Contributor Author

kleinmrk commented Mar 3, 2016

@richsalz thank you for the review.
What do you mean by repost? Should I open a new pull request?

@richsalz
Copy link
Contributor

richsalz commented Mar 3, 2016

No, this MR is fine. Just go to the branch, rebase on mater and push it to github again (-f flag)

@richsalz
Copy link
Contributor

richsalz commented Mar 3, 2016

+1 will merge after anothe rreview. thanks.

@richsalz richsalz mentioned this pull request Mar 3, 2016
Copy link
Contributor

Choose a reason for hiding this comment

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

merge 1035/1306, put the linebreak after the paren.

@richsalz
Copy link
Contributor

richsalz commented Mar 3, 2016

any chance of tests?

@kleinmrk
Copy link
Contributor Author

kleinmrk commented Mar 4, 2016

I've added ess_cert_id_alg variable into existing tsa tests. I believe this is enough.

@richsalz
Copy link
Contributor

richsalz commented Mar 4, 2016

ok thanks

@jariq
Copy link

jariq commented Mar 7, 2016

It's very good to see TS module is getting some attention - I've been waiting five years for inclusion of my last patch 😃. Any chance of getting this merged to 1.1?

@richsalz
Copy link
Contributor

richsalz commented Mar 7, 2016

Yes, the OpenSSL has not care very much about TS. Sorry about that.
I hope this will make it; it needs another team member to review.

Copy link

Choose a reason for hiding this comment

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

Define TS_F_TS_RESP_CTX_SET_ESS_CERT_ID_V2_DIGEST is not used anywhere in the code.

@mattcaswell mattcaswell added this to the Post 1.1.0 milestone May 5, 2016
@richsalz richsalz removed the issue: feature request The issue was opened to request a feature label May 2, 2017
@levitte
Copy link
Member

levitte commented May 2, 2017

For starters, it needs a rebase on top of a fresh master...

Copy link
Member

Choose a reason for hiding this comment

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

Inconsistent naming... why capitalize some function names and not others?

doc/man1/ts.pod Outdated
Copy link
Member

Choose a reason for hiding this comment

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

I think we concluded elsewhere that pointed lists should be =over 2, so please revert the change on this line.

@richsalz
Copy link
Contributor

richsalz commented May 2, 2017

Sigh. I feel kinda bad for the submittor. It's like we keep adding things for him to do.

@jariq
Copy link

jariq commented May 2, 2017

He'll be rewarded with eternal glory.

@kleinmrk
Copy link
Contributor Author

kleinmrk commented May 2, 2017

@levitte static functions are now consistently in lowercase.

@levitte
Copy link
Member

levitte commented May 3, 2017

Cool! Going in...

levitte pushed a commit that referenced this pull request May 3, 2017
Reviewed-by: Rich Salz <[email protected]>
Reviewed-by: Richard Levitte <[email protected]>
(Merged from #771)
@levitte
Copy link
Member

levitte commented May 3, 2017

Merged. I smashed it all together into one commit, f0ef20b

@levitte levitte closed this May 3, 2017
selman pushed a commit to Bg-Tek/openssl that referenced this pull request Jan 30, 2018
Reviewed-by: Rich Salz <[email protected]>
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#771)
mgorges added a commit to part-cw/lambdanative that referenced this pull request Feb 7, 2018
Zeitstempel.dfn.de currently fails verification due to a mismatch
in signatures (sha1 vs. sha2) in the new configuation of their
server. See openssl/openssl#771
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.

9 participants