securityanddataprivacytools/securitytools/openssllib/import/inc/openssl/opensslv.h
author Santosh V Patil <santosh.v.patil@nokia.com>
Mon, 19 Apr 2010 11:11:16 +0530
branchRCL_1
changeset 46 de7f90723dab
permissions -rw-r--r--
Fix for Bug 2442 - Symbian^2 package build failure.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
46
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     1
#ifndef HEADER_OPENSSLV_H
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     2
#define HEADER_OPENSSLV_H
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     3
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     4
/* Numeric release version identifier:
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     5
 * MNNFFPPS: major minor fix patch status
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     6
 * The status nibble has one of the values 0 for development, 1 to e for betas
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     7
 * 1 to 14, and f for release.  The patch level is exactly that.
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     8
 * For example:
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
     9
 * 0.9.3-dev	  0x00903000
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    10
 * 0.9.3-beta1	  0x00903001
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    11
 * 0.9.3-beta2-dev 0x00903002
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    12
 * 0.9.3-beta2    0x00903002 (same as ...beta2-dev)
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    13
 * 0.9.3	  0x0090300f
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    14
 * 0.9.3a	  0x0090301f
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    15
 * 0.9.4 	  0x0090400f
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    16
 * 1.2.3z	  0x102031af
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    17
 *
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    18
 * For continuity reasons (because 0.9.5 is already out, and is coded
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    19
 * 0x00905100), between 0.9.5 and 0.9.6 the coding of the patch level
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    20
 * part is slightly different, by setting the highest bit.  This means
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    21
 * that 0.9.5a looks like this: 0x0090581f.  At 0.9.6, we can start
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    22
 * with 0x0090600S...
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    23
 *
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    24
 * (Prior to 0.9.3-dev a different scheme was used: 0.9.2b is 0x0922.)
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    25
 * (Prior to 0.9.5a beta1, a different scheme was used: MMNNFFRBB for
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    26
 *  major minor fix final patch/beta)
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    27
 */
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    28
#define OPENSSL_VERSION_NUMBER	0x0090702fL
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    29
#define OPENSSL_VERSION_TEXT	"OpenSSL 0.9.7b 10 Apr 2003"
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    30
#define OPENSSL_VERSION_PTEXT	" part of " OPENSSL_VERSION_TEXT
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    31
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    32
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    33
/* The macros below are to be used for shared library (.so, .dll, ...)
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    34
 * versioning.  That kind of versioning works a bit differently between
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    35
 * operating systems.  The most usual scheme is to set a major and a minor
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    36
 * number, and have the runtime loader check that the major number is equal
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    37
 * to what it was at application link time, while the minor number has to
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    38
 * be greater or equal to what it was at application link time.  With this
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    39
 * scheme, the version number is usually part of the file name, like this:
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    40
 *
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    41
 *	libcrypto.so.0.9
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    42
 *
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    43
 * Some unixen also make a softlink with the major verson number only:
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    44
 *
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    45
 *	libcrypto.so.0
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    46
 *
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    47
 * On Tru64 and IRIX 6.x it works a little bit differently.  There, the
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    48
 * shared library version is stored in the file, and is actually a series
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    49
 * of versions, separated by colons.  The rightmost version present in the
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    50
 * library when linking an application is stored in the application to be
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    51
 * matched at run time.  When the application is run, a check is done to
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    52
 * see if the library version stored in the application matches any of the
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    53
 * versions in the version string of the library itself.
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    54
 * This version string can be constructed in any way, depending on what
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    55
 * kind of matching is desired.  However, to implement the same scheme as
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    56
 * the one used in the other unixen, all compatible versions, from lowest
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    57
 * to highest, should be part of the string.  Consecutive builds would
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    58
 * give the following versions strings:
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    59
 *
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    60
 *	3.0
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    61
 *	3.0:3.1
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    62
 *	3.0:3.1:3.2
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    63
 *	4.0
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    64
 *	4.0:4.1
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    65
 *
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    66
 * Notice how version 4 is completely incompatible with version, and
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    67
 * therefore give the breach you can see.
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    68
 *
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    69
 * There may be other schemes as well that I haven't yet discovered.
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    70
 *
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    71
 * So, here's the way it works here: first of all, the library version
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    72
 * number doesn't need at all to match the overall OpenSSL version.
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    73
 * However, it's nice and more understandable if it actually does.
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    74
 * The current library version is stored in the macro SHLIB_VERSION_NUMBER,
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    75
 * which is just a piece of text in the format "M.m.e" (Major, minor, edit).
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    76
 * For the sake of Tru64, IRIX, and any other OS that behaves in similar ways,
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    77
 * we need to keep a history of version numbers, which is done in the
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    78
 * macro SHLIB_VERSION_HISTORY.  The numbers are separated by colons and
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    79
 * should only keep the versions that are binary compatible with the current.
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    80
 */
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    81
#define SHLIB_VERSION_HISTORY ""
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    82
#define SHLIB_VERSION_NUMBER "0.9.7"
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    83
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    84
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    85
#endif /* HEADER_OPENSSLV_H */
de7f90723dab Fix for Bug 2442 - Symbian^2 package build failure.
Santosh V Patil <santosh.v.patil@nokia.com>
parents:
diff changeset
    86