cryptall.h is not needed for anything and cannot even be #include-d
[openssl.git] / crypto / dsa / dsa_vrf.c
index 3b74c81a576f611468f0fcfb89aa657573895715..ff552208aa23e638fbe2a0802849c2745f7e5558 100644 (file)
 
 #include <stdio.h>
 #include "cryptlib.h"
-#include "bn.h"
-#include "dsa.h"
-#include "rand.h"
-#include "asn1.h"
-#include "asn1_mac.h"
+#include <openssl/bn.h>
+#include <openssl/dsa.h>
+#include <openssl/rand.h>
+#include <openssl/asn1.h>
+#include <openssl/asn1_mac.h>
 
-int DSA_do_verify(dgst,dgst_len,sig,dsa)
-unsigned char *dgst;
-int dgst_len;
-DSA_SIG *sig;
-DSA *dsa;
+int DSA_do_verify(const unsigned char *dgst, int dgst_len, DSA_SIG *sig,
+                 DSA *dsa)
        {
        BN_CTX *ctx;
        BIGNUM u1,u2,t1;
@@ -147,13 +144,8 @@ DSA *dsa;
  *      0: incorrect signature
  *     -1: error
  */
-int DSA_verify(type,dgst,dgst_len,sigbuf,siglen,dsa)
-int type;
-unsigned char *dgst;
-int dgst_len;
-unsigned char *sigbuf;
-int siglen;
-DSA *dsa;
+int DSA_verify(int type, const unsigned char *dgst, int dgst_len,
+            unsigned char *sigbuf, int siglen, DSA *dsa)
        {
        DSA_SIG *s;
        int ret=-1;