HomePhabricator

sha1: allow selecting SHA-1 library at build time

Authored by simpkins.

Description

sha1: allow selecting SHA-1 library at build time

Summary:
Add a #define which allows selecting between the sha1collisiondetection and
openssl SHA-1 implementations at build time.

For now setup.py always uses sha1collisiondetection, but we have some other
internal build environments where we will likely default to OpenSSL's SHA-1
implementation instead.

Test Plan: Confirmed the code builds and passes tests.

Reviewers: #fbhgext, ryanmce

Reviewed By: #fbhgext, ryanmce

Differential Revision: https://phab.mercurial-scm.org/D285

Details

Committed
simpkinsAug 22 2017, 10:09 PM
Reviewer
Restricted Project
Differential Revision
D285: sha1: allow selecting SHA-1 library at build time
Parents
rFBHGX2122226e17b4: sha1: use the real SHA-1 algorithm
Branches
Unknown
Tags
Unknown