##### Page tree
Go to start of banner

# ConfVal_CommonCryptoLib

The CommonCryptoLib uses a specific version number. Use following item to report on installed versions or to validate that at least a specific minimal version is installed.

Configuration Store        CRYPTOLIB
Configuration Item         CCL

This item shows a text which contains the version information and a date.

Examples:

8.5.9 Feb 8 2017
8.5.13 May 2017
8.5.22 Jul 25 2018

Issue: You cannot use the > or >= operator to validate the version because it is stored in a text field.
The first example shows the lowest version but would be the highest value if you compare the texts using the > operator.

Solution: Use a Regular expression which consumes the digits groups from left to right.

Example according to note 2288631 which asks for version 8.5.4 or higher:

`^(8\.5\.[456789]|8\.5\.\d{2,}|8\.[6789]\.\d+|8\.\d{2,}\.\d+|9\.\d+\.\d+|\d{2,}\.\d+\.\d+)[ ].*`

Explained:

 `^` Begin of line `(` Begin of alternative groups `8\.5\.[456789]|` 8.5.4 to 8.5.9 `8\.5\.\d{2,}|` 8.5.10 or higher `8\.[6789]\.\d+|` 8.6.x to 8.9.x `8\.\d{2,}\.\d+|` 8.10.x or higher `9\.\d+\.\d+|` 9.x.y `\d{2,}\.\d+\.\d+` 10.x.y or higher `)` End of alternative groups `[ ].*` Space and remaining text

Result:

Example according to note 2444321 which asks for 8.5.10 or higher:

`^(8\.5\.\d{2,}|8\.[6789]\.\d+|8\.\d{2,}\.\d+|9\.\d+\.\d+|\d{2,}\.\d+\.\d+)[ ].*`

Explained:

 `^` Begin of line `(` Begin of alternative groups `8\.5\.\d{2,}|` 8.5.10 or higher `8\.[6789]\.\d+|` 8.6.x to 8.9.x `8\.\d{2,}\.\d+|` 8.10.x or higher `9\.\d+\.\d+|` 9.x.y `\d{2,}\.\d+\.\d+` 10.x.y or higher `)` End of alternative groups `[ ].*` Space and remaining text

Result:

• No labels