After the removal of MD2 from OpenSSL_add_all_digests() it is no longer possible to use it from the 'dgst' command:
$ openssl version OpenSSL 1.0.0e 6 Sep 2011 $ openssl -h 2>&1 | ggrep -A 3 'Message Digest' Message Digest commands (see the `dgst' command for more details) md2 md4 md5 rmd160 sha sha1 Firstly, it produces MD5 (because dgst defaults to MD5 if md == NULL): $ openssl md2 /etc/passwd MD5(/etc/passwd)= c36cbe1370e3399fd628410f0a221f5e and if used explicitly it simply throws an error: $ openssl dgst -md2 /etc/passwd unknown option '-md2' options are -c to output the digest with separating colons ... This is because it was not removed from progs.h: 154 #ifndef OPENSSL_NO_MD2 155 {FUNC_TYPE_MD,"md2",dgst_main}, 156 #endif and apps_startup() used by MAIN in dgst.c calls OpenSSL_add_all_algorithms() which results in a call of OpenSSL_add_all_digests(). v. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager majord...@openssl.org