Use standard header file string.h for memset prototype (where
[openssl.git] / crypto / asn1 / i2d_dsap.c
index 931711046444adafd63e4825b3e47e55020339de..4021123ba3f34cf3f7cad3f0ee8293740c9622ae 100644 (file)
@@ -56,6 +56,7 @@
  * [including the GNU Public Licence.]
  */
 
+#ifndef NO_DSA
 #include <stdio.h>
 #include "cryptlib.h"
 #include <openssl/bn.h>
@@ -106,10 +107,11 @@ int i2d_DSAparams(DSA *a, unsigned char **pp)
                bs.length=BN_bn2bin(num[i],bs.data);
                i2d_ASN1_INTEGER(&bs,&p);
                }
-       Free((char *)bs.data);
+       Free(bs.data);
        ret=t;
 err:
        *pp=p;
        return(ret);
        }
+#endif