Index: nse_openssl.cc ================================================= --- nse_openssl.cc +++ nse_openssl.cc @@ -8,7 +8,9 @@ #include #include #include +#ifndef OPENSSL_NO_MD2 #include +#endif #include #include #include @@ -219,6 +221,7 @@ return 1; } +#ifndef OPENSSL_NO_MD2 static int l_md2(lua_State *L) /** md2(string s) */ { size_t len; @@ -228,6 +231,7 @@ lua_pushlstring( L, (char *) MD2( s, len, digest ), 16 ); return 1; } +#endif static int l_md4(lua_State *L) /** md4(string s) */ { @@ -515,7 +519,9 @@ { "bignum_mod_exp", l_bignum_mod_exp }, { "rand_bytes", l_rand_bytes }, { "rand_pseudo_bytes", l_rand_pseudo_bytes }, +#ifndef OPENSSL_NO_MD2 { "md2", l_md2 }, +#endif { "md4", l_md4 }, { "md5", l_md5 }, { "sha1", l_sha1 },