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