Re: [openssl-users] openssl 1.1.1 opaque structures

2018-11-25 Thread priya p
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); . . } Thanks, Priya On Mon,

Re: [openssl-users] openssl 1.1.1 opaque structures

2018-11-25 Thread Viktor Dukhovni
> On Nov 26, 2018, at 12:14 AM, priya p wrote: > > I am unable to get the API to access bn->top value or any bn members in > openssl 1.1.1 . > Can you help me with the pointers to those APIs ? What actual problem are you trying to solve? Accessing bn->top is a goal in itself. -- Vik

Re: [openssl-users] openssl 1.1.1 opaque structures

2018-11-25 Thread priya p
Hi Richard, I am unable to get the API to access bn->top value or any bn members in openssl 1.1.1 . Can you help me with the pointers to those APIs ? And I dont see "lh_OPENSSL_CSTRING_new " function in "include/openssl/safestack.h" ? Please correct me if I am wrong . Thanks, Priya On Sun, 2

Re: [openssl-users] error message oddity

2018-11-25 Thread Viktor Dukhovni
> On Nov 25, 2018, at 4:23 PM, Jeremy Harris wrote: > > That isn't the package name, it is text defined in openssl/opensslv.h That happens when "OPENSSL_FIPS" is defined: # define OPENSSL_VERSION_NUMBER 0x101000b0L # ifdef OPENSSL_FIPS # define OPENSSL_VERSION_TEXT"OpenSSL 1.1.0k-fi

Re: [openssl-users] error message oddity

2018-11-25 Thread Viktor Dukhovni
> On Nov 25, 2018, at 3:17 PM, Jeremy Harris wrote: > > OpenSSL 1.1.0h-fips FWIW (not germane to this issue), there is no FIPS module for OpenSSL 1.1.0, so the package name is rather misleading. > On OpenSuse tumbleweed I'm getting an error message lacking > the last component: > >error:02

[openssl-users] error message oddity

2018-11-25 Thread Jeremy Harris
OpenSSL 1.1.0h-fips On OpenSuse tumbleweed I'm getting an error message lacking the last component: error:02001002:system library:fopen: This is for a deliberately-triggered error, on calling SSL_CTX_use_certificate_chain_file() with a non-existent file. The global "errno" is properly set a