--- rpl/src/controle.c 2010/08/26 19:07:35 1.13 +++ rpl/src/controle.c 2010/09/07 08:58:04 1.14 @@ -56,12 +56,15 @@ controle(struct_processus *s_etat_proces struct stat stat_buf; unsigned char *chaine; + unsigned char *registre; unsigned char somme[EVP_MAX_MD_SIZE]; unsigned char somme_hexadecimale[2 * EVP_MAX_MD_SIZE]; unsigned int i; unsigned int longueur_somme; + registre = fichier; + # ifdef OS2 unsigned char *tampon; @@ -204,6 +207,21 @@ controle(struct_processus *s_etat_proces } else { + if ((*s_etat_processus).langue == 'F') + { + printf("+++Fatal : Somme de contrôle invalide\n"); + printf("Fonction %s(%s)\n", type, fichier); + printf("Résultat obtenu : %s\n", somme_hexadecimale); + printf("Résultat attendu : %s\n", somme_candidate); + } + else + { + printf("+++Fatal : Hash code mismatch\n"); + printf("Function %s(%s)\n", type, fichier); + printf("Computed hash code : %s\n", somme_hexadecimale); + printf("Expected hasd code : %s\n", somme_candidate); + } + drapeau = d_faux; }