Support for authority information access extension.
[openssl.git] / crypto / evp / m_sha.c
index d723ac76a39bfa63a73a8ff8c5fc78c1627ec2dd..6d35b71b8506346419d09d80263c03936ad75a42 100644 (file)
@@ -1,5 +1,5 @@
 /* crypto/evp/m_sha.c */
-/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
  * This package is an SSL implementation written
  * [including the GNU Public Licence.]
  */
 
+#ifndef 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 sha_md=
        {
@@ -71,10 +72,12 @@ static EVP_MD sha_md=
        SHA_Update,
        SHA_Final,
        EVP_PKEY_RSA_method,
+       SHA_CBLOCK,
+       sizeof(EVP_MD *)+sizeof(SHA_CTX),
        };
 
-EVP_MD *EVP_sha()
+EVP_MD *EVP_sha(void)
        {
        return(&sha_md);
        }
-
+#endif