Re: [openssl-dev] global OpenSSL symbols in user apps

2016-06-28 Thread Richard Levitte
In message <5772803f.3060...@openssl.org> on Tue, 28 Jun 2016 14:48:47 +0100, 
Matt Caswell  said:

matt> 
matt> 
matt> On 28/06/16 14:41, Richard Levitte wrote:
matt> > Practically speaking, it depends.  Provided we're talking about shared
matt> > libraries, it's a definite "no" on Windows, VMS, Linux and Solaris
matt> > (the list of Unix platforms are likely to expand) because the
matt> > non-public symbols aren't made available.
matt> 
matt> That's true in 1.1.0. I think they are available in 1.0.2/1.0.1 on Linux
matt> and Solaris.

Good point, thanks for the correction.

Cheers,
Richard

-- 
Richard Levitte levi...@openssl.org
OpenSSL Project http://www.openssl.org/~levitte/
-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] global OpenSSL symbols in user apps

2016-06-28 Thread Matt Caswell


On 28/06/16 14:41, Richard Levitte wrote:
> In message 
> 
>  on Tue, 28 Jun 2016 12:38:20 +, Catalin Vasile  
> said:
> 
> cata.vasile> Hi,
> cata.vasile> 
> cata.vasile> Is there a way to use global non-API functions or variables in 
> user apps?
> cata.vasile> For example: Is there a way to use OpenSSL_armcap_P in your user 
> apps? I tried declaring it as "extern" variable, but at linking the linker 
> says it cannot find the symbol.
> 
> Generally speaking: no.
> 
> Practically speaking, it depends.  Provided we're talking about shared
> libraries, it's a definite "no" on Windows, VMS, Linux and Solaris
> (the list of Unix platforms are likely to expand) because the
> non-public symbols aren't made available.

That's true in 1.1.0. I think they are available in 1.0.2/1.0.1 on Linux
and Solaris.

Matt

> 
> If we're talking about static libraries, no symbols are hidden.
> 
> I would *not* recommend fiddling with the non-public symbols.  You may
> be safe in one OpenSSL version, but you cannot know what's happening
> with them in the next.
> 
> Cheers,
> Richard
> 
-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


Re: [openssl-dev] global OpenSSL symbols in user apps

2016-06-28 Thread Richard Levitte
In message 

 on Tue, 28 Jun 2016 12:38:20 +, Catalin Vasile  said:

cata.vasile> Hi,
cata.vasile> 
cata.vasile> Is there a way to use global non-API functions or variables in 
user apps?
cata.vasile> For example: Is there a way to use OpenSSL_armcap_P in your user 
apps? I tried declaring it as "extern" variable, but at linking the linker says 
it cannot find the symbol.

Generally speaking: no.

Practically speaking, it depends.  Provided we're talking about shared
libraries, it's a definite "no" on Windows, VMS, Linux and Solaris
(the list of Unix platforms are likely to expand) because the
non-public symbols aren't made available.

If we're talking about static libraries, no symbols are hidden.

I would *not* recommend fiddling with the non-public symbols.  You may
be safe in one OpenSSL version, but you cannot know what's happening
with them in the next.

Cheers,
Richard

-- 
Richard Levitte levi...@openssl.org
OpenSSL Project http://www.openssl.org/~levitte/
-- 
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev