Skip to content

Add a legacy provider and put MD2 in it#8541

Closed
mattcaswell wants to merge 3 commits intoopenssl:masterfrom
mattcaswell:legacy-skeleton
Closed

Add a legacy provider and put MD2 in it#8541
mattcaswell wants to merge 3 commits intoopenssl:masterfrom
mattcaswell:legacy-skeleton

Conversation

@mattcaswell
Copy link
Member

This PR is built on top of #8513. It creates the legacy provider and implements MD2 within it.

While implementing this I discovered a bug in the fetching code which I also fixed. When we attempt to fetch a method with a given NID we will ask the providers for it if we don't already know about it. During that process we may be told about other methods with a different NID. We need to make sure we don't confuse the two.

@levitte
Copy link
Member

levitte commented Mar 20, 2019

While implementing this I discovered a bug in the fetching code which I also fixed. When we attempt to fetch a method with a given NID we will ask the providers for it if we don't already know about it. During that process we may be told about other methods with a different NID. We need to make sure we don't confuse the two.

It took me a few reads of the commit before I got it. Good catch!!!

Copy link
Contributor

@paulidale paulidale Mar 21, 2019

Choose a reason for hiding this comment

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

legacy=yes

This will require a change to crypto/property/property_parse.c to permit the legacy property name.

@levitte
Copy link
Member

levitte commented Apr 5, 2019

@mattcaswell, don't forget this one.

When we attempt to fetch a method with a given NID we will ask the
providers for it if we don't already know about it. During that process
we may be told about other methods with a different NID. We need to
make sure we don't confuse the two.
@mattcaswell mattcaswell changed the title WIP: Add a legacy provider and put MD2 in it Add a legacy provider and put MD2 in it Apr 5, 2019
@mattcaswell
Copy link
Member Author

Rebased and updated with fixes for the comments above.

Also this is now out of WIP.

@mattcaswell
Copy link
Member Author

I updated the internal docs as requested. Fixup commit pushed.

@mattcaswell
Copy link
Member Author

Pushed. Thanks.

@mattcaswell mattcaswell closed this Apr 9, 2019
levitte pushed a commit that referenced this pull request Apr 9, 2019
When we attempt to fetch a method with a given NID we will ask the
providers for it if we don't already know about it. During that process
we may be told about other methods with a different NID. We need to
make sure we don't confuse the two.

Reviewed-by: Richard Levitte <[email protected]>
(Merged from #8541)
levitte pushed a commit that referenced this pull request Apr 9, 2019
Reviewed-by: Richard Levitte <[email protected]>
(Merged from #8541)
@opensignature opensignature mentioned this pull request Apr 15, 2019
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants