As ftruncate is not availabe on all platforms, switch back to
[oweals/openssl.git] / crypto / asn1 / i2d_dsap.c
index 94ecff152548c38126fe3db2edbedb890c265fbe..f36f0da4e2e770978dedbb8dc5581e4667c92006 100644 (file)
  * [including the GNU Public Licence.]
  */
 
+#ifndef NO_DSA
 #include <stdio.h>
 #include "cryptlib.h"
-#include "bn.h"
-#include "asn1_mac.h"
-#include "dsa.h"
+#include <openssl/bn.h>
+#include <openssl/asn1_mac.h>
+#include <openssl/dsa.h>
 
-/*
- * ASN1err(ASN1_F_D2I_DSAPARAMS,ASN1_R_LENGTH_MISMATCH);
- */
-
-int i2d_DSAparams(a,pp)
-DSA *a;
-unsigned char **pp;
+int i2d_DSAparams(DSA *a, unsigned char **pp)
        {
        BIGNUM *num[3];
        ASN1_INTEGER bs;
@@ -118,4 +113,5 @@ err:
        *pp=p;
        return(ret);
        }
+#endif