Fix the build and tests following constification of DH, DSA, RSA