client: add support for SHA-2
Merge pull request #140 from rjocoleman/sha-2

client: add support for SHA-2