Exemple
L'exemple suivant montre comment utiliser la méthode GetEncryptionLevel pour renvoyer le niveau de chiffrement.
//------------------------------------------------------- // ECLConnection::GetEncryptionLevel // // Display the encryption level of session A // //------------------------------------------------------- void SampleEL() { int EncryptionLevel = 0; //Encryption Level ECLConnection * Info = NULL; //Pointer to connection object Info = new ECLConnection('A'); If (Info != NULL) { EncryptionLevel = Info->GetEncryptionLevel(); switch (EncryptionLevel) { case ENCRYPTION_NONE: printf("Encryption Level = None"); break; case ENCRYPTION_40BIT: printf("Encryption Level = 40 BIT"); break; case ENCRYPTION_56BIT: printf("Encryption Level = 56 BIT"); break; case ENCRYPTION_128BIT: printf("Encryption Level = 128 BIT"); break; case ENCRYPTION_168BIT: printf("Encryption Level = 168 BIT"); break; default: } } }