[openssl-users] OPENSSL_VERSION_NUMBER representation

Tomas Mraz tmraz at redhat.com
Wed May 2 12:30:42 UTC 2018


On Wed, 2018-05-02 at 08:19 -0400, Edward Diener wrote:
> The latest documentation for OPENSSL_VERSION_NUMBER at 
> https://www.openssl.org/docs/man1.1.0/crypto/OPENSSL_VERSION_NUMBER.h
> tml 
> says that it is 9 hex digits, with the last nibble being a status 
> identifier, while every use I have seen of it in header files treats
> it 
> as 8 hex digits. Can anybody straighten me out on this ?
> 
> Also the latest documentation give it as
> 
> MNNFFPPS: major minor fix patch status
> 
> where the examples in that documentation clearly show it as
> 
> MMNNFFPPS: major minor fix patch status
> 
> Can anybody straighten me out on this ?

That's because 0x1 and 0x01 are the same numbers.

For example version 1.1.0a: 0x01010001f == 0x1010001f

-- 
Tomáš Mráz
No matter how far down the wrong road you've gone, turn back.
                                              Turkish proverb
[You'll know whether the road is wrong if you carefully listen to your
conscience.]



More information about the openssl-users mailing list