Diff for /rpl/src/instructions_c8.c between versions 1.3 and 1.5

version 1.3, 2013/02/27 14:12:57 version 1.5, 2013/02/27 16:26:45
Line 292  instruction_cipher(struct_processus *s_e Line 292  instruction_cipher(struct_processus *s_e
             printf("  Usage:\n\n");              printf("  Usage:\n\n");
         }          }
   
         printf("    \"password\" { \"key\" \"DES-EDE-OFB\" \"SHA1\" "          printf("    \"password\" { \"KEY\" \"DES-EDE-OFB\" \"SHA1\" "
                 "# 0h 3 } CIPHER\n");                  "# 0h 3 } CIPHER\n");
         printf("    \"text\" { \"ENCRYPT\" \"AES-128-CBC\" \"key\" "          printf("    \"text\" { \"ENCRYPT\" \"AES-128-CBC\" \"key\" "
                 "\"iv\" } CIPHER\n");                  "\"iv\" } CIPHER\n");
Line 1755  instruction_cipher(struct_processus *s_e Line 1755  instruction_cipher(struct_processus *s_e
             return;              return;
         }          }
   
         if (((*(*l_element_courant).donnee).objet = malloc(          if (((*(*l_element_courant).donnee).objet =
                 (strlen(algorithme_chiffrement) + 1) * sizeof(unsigned char)))                  conversion_majuscule(algorithme_chiffrement)) == NULL)
                 == NULL)  
         {          {
             (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;              (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;
             return;              return;
         }          }
   
         strcpy((*(*l_element_courant).donnee).objet, algorithme_chiffrement);  
   
         // Clef          // Clef
   
         if (((*l_element_courant).suivant = allocation_maillon(          if (((*l_element_courant).suivant = allocation_maillon(

Removed from v.1.3  
changed lines
  Added in v.1.5


CVSweb interface <joel.bertrand@systella.fr>