id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	lang	patch	platform
1566	md2 should not be used anymore	jquelin		"md2 is considered insecure by openssl upstream, and was already removed from algorithmic tables starting with 0.9.8m. Only API was maintained, but starting with openssl 1.0.0, not even its API is compiled by default anymore.

You can check by yourself, starting with openssl 0.9.8m 'openssl md2' returns the same result as 'openssl md5' - MD2 is not there anymore.

mandriva is shipping openssl which does not provide md2 api anymore. so i get the following error when compiling parrot 2.3.0 (not 2.2.0, but version 2.3.0 is not available in trac):

{{{
$ make
[...]
./md2.pmc:27:25: error: openssl/md2.h: No such file or directory
./md2.pmc: In function 'Parrot_MD2_clone':
./md2.pmc:79: error: 'MD2_CTX' undeclared (first use in this function)
./md2.pmc:79: error: (Each undeclared identifier is reported only once
./md2.pmc:79: error: for each function it appears in.)
./md2.pmc:79: error: 'c' undeclared (first use in this function)
./md2.pmc:79: error: expected expression before ')' token
./md2.pmc: In function 'Parrot_MD2_destroy':
./md2.pmc:61: error: 'MD2_CTX' undeclared (first use in this function)
./md2.pmc:61: error: 'c' undeclared (first use in this function)
./md2.pmc:61: error: expected expression before ')' token
./md2.pmc: In function 'Parrot_MD2_init':
./md2.pmc:43: error: 'MD2_CTX' undeclared (first use in this function)
./md2.pmc:43: error: 'c' undeclared (first use in this function)
./md2.pmc:43: error: expected expression before ')' token
./md2.pmc: In function 'Parrot_MD2_nci_Init':
./md2.pmc:107: error: 'MD2_CTX' undeclared (first use in this function)
./md2.pmc:107: error: 'c' undeclared (first use in this function)
./md2.pmc:107: error: expected expression before ')' token
./md2.pmc:108: warning: implicit declaration of function 'MD2_Init'
./md2.pmc:108: warning: nested extern declaration of 'MD2_Init'
./md2.pmc: In function 'Parrot_MD2_nci_Update':
./md2.pmc:121: error: 'MD2_CTX' undeclared (first use in this function)
./md2.pmc:121: error: 'c' undeclared (first use in this function)
./md2.pmc:121: error: expected expression before ')' token
./md2.pmc:122: warning: implicit declaration of function 'MD2_Update'
./md2.pmc:122: warning: nested extern declaration of 'MD2_Update'
./md2.pmc: In function 'Parrot_MD2_nci_Final':
./md2.pmc:135: error: 'MD2_DIGEST_LENGTH' undeclared (first use in this function)
./md2.pmc:136: error: 'MD2_CTX' undeclared (first use in this function)
./md2.pmc:136: error: 'c' undeclared (first use in this function)
./md2.pmc:136: error: expected expression before ')' token
./md2.pmc:137: error: ISO C90 forbids mixed declarations and code
./md2.pmc:139: warning: implicit declaration of function 'MD2_Final'
./md2.pmc:139: warning: nested extern declaration of 'MD2_Final'
gmake[1]: *** [md2.o] Error 1
}}}"	bug	closed	normal		none	2.2.0	medium	fixed					linux
