#ifndef LM_SIGN_LEVEL
#if (LM_STRENGTH >= LM_STRENGTH_113BIT) && !defined(ENCRYPTION_SEED3)
/*
* Case 1: Upgrade from pre-v7.2 license-key to TRL
* Both license-key and SIGN= supported
* Sign= generated using v8.1 method
*/
#define LM_SIGN_LEVEL LM_SIGN
#endif /* Case 1 */
#if (LM_STRENGTH == LM_STRENGTH_LICENSE_KEY) && !defined(ENCRYPTION_SEED3)
/*
* Case 2: Upgrade from pre-v7.2 license-key -- no change
* Handshake seeds automatically generated
*/
#define LM_SIGN_LEVEL LM_NO_SIGN
#endif /* Case 2 */
#if (LM_STRENGTH == LM_STRENGTH_DEFAULT) && defined(ENCRYPTION_SEED3)
/*
* Case 4: Upgrade from v7.2 non-TRL SIGN= -- no change
*/
#define LM_SIGN_LEVEL LM_SIGN
#endif /* Case 4 */
#if (LM_STRENGTH >= LM_STRENGTH_113BIT) && defined(ENCRYPTION_SEED3)
/*
* Case 5: Upgrade from v7.2 TRL
* SIGN= and SIGN2= required
*/
#define LM_SIGN_LEVEL LM_SIGN2
#endif /* Case 5 */
#ifndef ENCRYPTION_SEED1
/*
* Cases 7 and 8: new customer
*/
#define LM_SIGN_LEVEL LM_SIGN
#endif /* Cases 7 and 8 */
#if (LM_STRENGTH == LM_STRENGTH_LICENSE_KEY) && defined(ENCRYPTION_SEED3)
/*
* Case 10: Used v7.2 and still using LICENSE_KEY
*/
#define LM_SIGN_LEVEL LM_NO_SIGN
#endif /* Case 10 */
#else
/*
* Else for LM_SIGN_LEVEL. There should be only one case here:
* case 9
*/
#if (LM_SIGN_LEVEL == LM_SIGN) && (LM_STRENGTH >= LM_STRENGTH_113BIT) \
&& defined(ENCRYPTION_SEED3)
/*
* Case 9: Upgrade from v7.2 license-key to TRL, but didn't use
* TRL in v7.2
* SIGN= only
* No action -- LM_SIGN_LEVEL already explictly set by ISV.
*/
#endif /* Case 9 */