Add first cut symmetric crypto support.
[openssl.git] / crypto / evp / m_md2.c
index fcd3d32de2c4bf5562de8ee8ae6b5dcc7271f78d..442d234e320ed61e8983f2ba21987d082da4fc1d 100644 (file)
  * [including the GNU Public Licence.]
  */
 
+#ifndef OPENSSL_NO_MD2
 #include <stdio.h>
 #include "cryptlib.h"
-#include "evp.h"
-#include "objects.h"
-#include "x509.h"
+#include <openssl/evp.h>
+#include <openssl/objects.h>
+#include <openssl/x509.h>
+#include <openssl/md2.h>
 
-static EVP_MD md2_md=
+static const EVP_MD md2_md=
        {
        NID_md2,
        NID_md2WithRSAEncryption,
@@ -75,8 +77,8 @@ static EVP_MD md2_md=
        sizeof(EVP_MD *)+sizeof(MD2_CTX),
        };
 
-EVP_MD *EVP_md2(void)
+const EVP_MD *EVP_md2(void)
        {
        return(&md2_md);
        }
-
+#endif