Add DSA_generate_parameters to decrepit.

This function was deprecated by OpenSSL in 0.9.8 but code that uses it
still exists. This change adds an implementation of this function to
decreipt/ to support these programs.

Change-Id: Ie99cd00ff8b0ab2675f2b1c821c3d664b9811f16
Reviewed-on: https://boringssl-review.googlesource.com/7360
Reviewed-by: David Benjamin <davidben@google.com>
diff --git a/include/openssl/dsa.h b/include/openssl/dsa.h
index 8cf008b..0077a72 100644
--- a/include/openssl/dsa.h
+++ b/include/openssl/dsa.h
@@ -363,6 +363,15 @@
  * Use |DSA_marshal_parameters| instead. */
 OPENSSL_EXPORT int i2d_DSAparams(const DSA *in, uint8_t **outp);
 
+/* DSA_generate_parameters is a deprecated version of
+ * |DSA_generate_parameters_ex| that creates and returns a |DSA*|. Don't use
+ * it. */
+OPENSSL_EXPORT DSA *DSA_generate_parameters(int bits, unsigned char *seed,
+                                            int seed_len, int *counter_ret,
+                                            unsigned long *h_ret,
+                                            void (*callback)(int, int, void *),
+                                            void *cb_arg);
+
 
 struct dsa_st {
   long version;