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