Skip to content

Commit d4063cc

Browse files
smcmahonibmrobindubeyibm
authored andcommitted
more signer debug
Signed-off-by: Robin Dubey <[email protected]>
1 parent 55f1ebb commit d4063cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

icc/extsig.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ static long HashCore(FILE *fin, long pos, EVP_MD_CTX *md_ctx,
171171
EVP_DigestUpdate(md_ctx, fbuf, len);
172172
pos -= (long)len;
173173
} else {
174-
break;
174+
printf("HashCore:fread failed\n");
175+
break;
175176
}
176177
}
177178
}
@@ -622,7 +623,8 @@ static int GenSig(FILE *fin, unsigned char *sigout, EVP_PKEY *key, long pos) {
622623
HashCore(fin, pos, md_ctx, md);
623624
evpRC = EVP_SignFinal(md_ctx, sigout, &signL, key);
624625
if (1 != evpRC) {
625-
signL = 0;
626+
printf("EVP_SignFinal error %d\n", evpRC);
627+
signL = 0;
626628
}
627629
EVP_MD_CTX_free(md_ctx);
628630
}

0 commit comments

Comments
 (0)