When OPENSSL_NO_DEPRECATED is defined, deprecated functions are (or should
[oweals/openssl.git] / crypto / bn / bn_mpi.c
index 84b0317081c0147f4c701ea7a8f71422374bf034..05fa9d1e9a5c578c3cfee1f2d35f5c854ab29669 100644 (file)
@@ -60,9 +60,7 @@
 #include "cryptlib.h"
 #include "bn_lcl.h"
 
-int BN_bn2mpi(a,d)
-BIGNUM *a;
-unsigned char *d;
+int BN_bn2mpi(const BIGNUM *a, unsigned char *d)
        {
        int bits;
        int num=0;
@@ -90,10 +88,7 @@ unsigned char *d;
        return(num+4+ext);
        }
 
-BIGNUM *BN_mpi2bn(d,n,a)
-unsigned char *d;
-int n;
-BIGNUM *a;
+BIGNUM *BN_mpi2bn(const unsigned char *d, int n, BIGNUM *a)
        {
        long len;
        int neg=0;