Add SHA for ARMv8.
[oweals/openssl.git] / crypto / asn1 / a_bool.c
index 711c57e5c00f22c0333c247ce5fbd6b260eeef44..331acdf05350cff70cd90678d401fec1978b7b5d 100644 (file)
 
 #include <stdio.h>
 #include "cryptlib.h"
-#include <openssl/asn1.h>
-
-/* ASN1err(ASN1_F_D2I_ASN1_BOOLEAN,ASN1_R_EXPECTING_A_BOOLEAN);
- * ASN1err(ASN1_F_D2I_ASN1_BOOLEAN,ASN1_R_BOOLEAN_IS_WRONG_LENGTH);
- */
+#include <openssl/asn1t.h>
 
 int i2d_ASN1_BOOLEAN(int a, unsigned char **pp)
        {
@@ -79,10 +75,10 @@ int i2d_ASN1_BOOLEAN(int a, unsigned char **pp)
        return(r);
        }
 
-int d2i_ASN1_BOOLEAN(int *a, unsigned char **pp, long length)
+int d2i_ASN1_BOOLEAN(int *a, const unsigned char **pp, long length)
        {
        int ret= -1;
-       unsigned char *p;
+       const unsigned char *p;
        long len;
        int inf,tag,xclass;
        int i=0;
@@ -114,3 +110,5 @@ err:
        ASN1err(ASN1_F_D2I_ASN1_BOOLEAN,i);
        return(ret);
        }
+
+