licencecheck - In the current scenario the following is the sequence of checks:
- Check the sitekey in the licencefile against the sitekey generated by sitekeygen. If not same then exit with error.
- Check if the current data is within the limits of the licence created timestamp and the licence expiry timestamp. If not then exit with error.
- Check the signature. If not valid then exit with error.
This sequence needs to be changed with the signature check being carried out first along with a review of this code.