Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SHA-1 verification of package contents #21

Merged
merged 1 commit into from Nov 17, 2013
Merged

Add SHA-1 verification of package contents #21

merged 1 commit into from Nov 17, 2013

Conversation

slusarz
Copy link

@slusarz slusarz commented Nov 5, 2013

MD5 has been proven to be insecure, so it is fairly useless for serving
as the basis of a verification system.

This adds a sha1sum attribute, which is preferentially used if it is available in the package.xml file. Falls back to md5sum for backwards-compatibility.

MD5 has been proven to be insecure, so it is fairly useless for serving
as the basis of a verification system.
@@ -92,6 +92,7 @@
baseinstalldir CDATA #IMPLIED
platform CDATA #IMPLIED
md5sum CDATA #IMPLIED
sha1sum CDATA #IMPLIED
Copy link
Member

Choose a reason for hiding this comment

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

This will probably need to be pushed into the package xsd as well

Copy link
Author

Choose a reason for hiding this comment

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

Are we talking about:

https://github.com/pear/pearweb/tree/master/public_html/dtd

(Apologies for my ignorance. And/or if this comment isn't necessarily directed at me.)

Copy link
Member

Choose a reason for hiding this comment

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

Yup :) Throw me a PR for that and I'll apply both, it's quite reasonable - introduce a package2.2.xsd and duplicate the md5sum bits as required

Copy link
Author

Choose a reason for hiding this comment

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

CloCkWeRX added a commit that referenced this pull request Nov 17, 2013
Add SHA-1 verification of package contents
@CloCkWeRX CloCkWeRX merged commit 6589990 into pear:master Nov 17, 2013
@slusarz slusarz deleted the sha1 branch November 25, 2013 05:53
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.

None yet

2 participants