diff options
author | Richard Levitte <levitte@openssl.org> | 2014-12-16 04:13:41 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2014-12-17 14:27:42 +0100 |
commit | 8932b82f7d20159ca6264e811e0b67dadb26c969 (patch) | |
tree | a90efff84e2e8cd4c7ee7ba5d5dfe02f38a37f47 /crypto/evp | |
parent | a4a759acecac67d7c41fa47e724f634c709ea65c (diff) |
Clear warnings/errors within KSSL_DEBUG code sections
Reviewed-by: Andy Polyakov <appro@openssl.org>
(cherry picked from commit 53332a75d16a5bb3b9d90c15fcf38d2e87160a52)
Diffstat (limited to 'crypto/evp')
-rw-r--r-- | crypto/evp/e_des3.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/crypto/evp/e_des3.c b/crypto/evp/e_des3.c index 8d7b7de292..7e1e8b309c 100644 --- a/crypto/evp/e_des3.c +++ b/crypto/evp/e_des3.c @@ -124,12 +124,11 @@ static int des_ede_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, #ifdef KSSL_DEBUG { int i; - char *cp; - printf("des_ede_cbc_cipher(ctx=%lx, buflen=%d)\n", ctx, ctx->buf_len); - printf("\t iv= "); + fprintf(stderr,"des_ede_cbc_cipher(ctx=%p, buflen=%d)\n", ctx, ctx->buf_len); + fprintf(stderr,"\t iv= "); for(i=0;i<8;i++) - printf("%02X",ctx->iv[i]); - printf("\n"); + fprintf(stderr,"%02X",ctx->iv[i]); + fprintf(stderr,"\n"); } #endif /* KSSL_DEBUG */ while (inl>=EVP_MAXCHUNK) @@ -260,11 +259,14 @@ static int des_ede3_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, #ifdef KSSL_DEBUG { int i; - printf("des_ede3_init_key(ctx=%lx)\n", ctx); - printf("\tKEY= "); - for(i=0;i<24;i++) printf("%02X",key[i]); printf("\n"); - printf("\t IV= "); - for(i=0;i<8;i++) printf("%02X",iv[i]); printf("\n"); + fprintf(stderr,"des_ede3_init_key(ctx=%p)\n", ctx); + fprintf(stderr,"\tKEY= "); + for(i=0;i<24;i++) fprintf(stderr,"%02X",key[i]); fprintf(stderr,"\n"); + if (iv) + { + fprintf(stderr,"\t IV= "); + for(i=0;i<8;i++) fprintf(stderr,"%02X",iv[i]); fprintf(stderr,"\n"); + } } #endif /* KSSL_DEBUG */ |