(cherry picked from commit bd59f2b9) Conflicts: crypto/dh/dh.h crypto/dh/dh_err.c Sync error codes with 1.0.1.