Change the EVP_somecipher() and EVP_somedigest()
[openssl.git] / crypto / evp / m_dss1.c
index ff256b7b20da01e83dc32de875bb2f6a7e8e697d..115c432f94618fba8e62d775217af5e1f2ad734d 100644 (file)
  * [including the GNU Public Licence.]
  */
 
+#ifndef OPENSSL_NO_SHA
 #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>
 
-static EVP_MD dss1_md=
+static const EVP_MD dss1_md=
        {
        NID_dsa,
        NID_dsaWithSHA1,
@@ -75,7 +76,8 @@ static EVP_MD dss1_md=
        sizeof(EVP_MD *)+sizeof(SHA_CTX),
        };
 
-EVP_MD *EVP_dss1()
+const EVP_MD *EVP_dss1(void)
        {
        return(&dss1_md);
        }
+#endif