diff options
Diffstat (limited to 'src/lib/libssl/t1_enc.c')
-rw-r--r-- | src/lib/libssl/t1_enc.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/libssl/t1_enc.c b/src/lib/libssl/t1_enc.c index 638405ec39..0c4cddedf8 100644 --- a/src/lib/libssl/t1_enc.c +++ b/src/lib/libssl/t1_enc.c | |||
@@ -361,7 +361,7 @@ int tls1_change_cipher_state(SSL *s, int which) | |||
361 | { | 361 | { |
362 | int i; | 362 | int i; |
363 | for (i=0; i<s->s3->tmp.key_block_length; i++) | 363 | for (i=0; i<s->s3->tmp.key_block_length; i++) |
364 | printf("%02x", key_block[i]); printf("\n"); | 364 | printf("%02x", s->s3->tmp.key_block[i]); printf("\n"); |
365 | } | 365 | } |
366 | #endif /* KSSL_DEBUG */ | 366 | #endif /* KSSL_DEBUG */ |
367 | 367 | ||
@@ -427,7 +427,7 @@ int tls1_change_cipher_state(SSL *s, int which) | |||
427 | s->write_hash = mac_ctx; | 427 | s->write_hash = mac_ctx; |
428 | } | 428 | } |
429 | else | 429 | else |
430 | mac_ctx = ssl_replace_hash(&s->write_hash,NULL); | 430 | mac_ctx = ssl_replace_hash(&s->write_hash,NULL); |
431 | #ifndef OPENSSL_NO_COMP | 431 | #ifndef OPENSSL_NO_COMP |
432 | if (s->compress != NULL) | 432 | if (s->compress != NULL) |
433 | { | 433 | { |
@@ -929,8 +929,8 @@ int tls1_final_finish_mac(SSL *s, | |||
929 | else | 929 | else |
930 | { | 930 | { |
931 | if (!EVP_MD_CTX_copy_ex(&ctx, hdgst) || | 931 | if (!EVP_MD_CTX_copy_ex(&ctx, hdgst) || |
932 | !EVP_DigestFinal_ex(&ctx,q,&i) || | 932 | !EVP_DigestFinal_ex(&ctx,q,&i) || |
933 | (i != (unsigned int)hashsize)) | 933 | (i != (unsigned int)hashsize)) |
934 | err = 1; | 934 | err = 1; |
935 | q+=hashsize; | 935 | q+=hashsize; |
936 | } | 936 | } |
@@ -986,7 +986,8 @@ int tls1_mac(SSL *ssl, unsigned char *md, int send) | |||
986 | } | 986 | } |
987 | else | 987 | else |
988 | { | 988 | { |
989 | EVP_MD_CTX_copy(&hmac,hash); | 989 | if (!EVP_MD_CTX_copy(&hmac,hash)) |
990 | return -1; | ||
990 | mac_ctx = &hmac; | 991 | mac_ctx = &hmac; |
991 | } | 992 | } |
992 | 993 | ||