Re: openssl 1.1.1 opaque structures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On Nov 26, 2018, at 12:45 AM, priya p <priyahere223@xxxxxxxxx> wrote:
> 
> I am trying to fix this part of code:
> 
>  int Func1 (var, bn) {
> *var = rc_vmalloc(bn->top * BN_BYTES); ------------------> Trying to fix this. Error it throws is " error: dereferencing pointer to incomplete type".
> 
>  (*var)->l = BN_bn2bin(bn, (unsigned char *)(*var)->v);
> .
> .
> }

Have you considered looking at the BN_bn2bin documentation?

   https://www.openssl.org/docs/man1.0.2/crypto/BN_bn2bin.html

   SYNOPSIS:
       int BN_bn2bin(const BIGNUM *a, unsigned char *to);

   DESCRIPTION:

       BN_bn2bin() converts the absolute value of a into big-endian form and
       stores it at to. to must point to BN_num_bytes(a) bytes of memory.

-- 
	Viktor.

-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux