diff options
author | beck <> | 2016-03-06 14:52:15 +0000 |
---|---|---|
committer | beck <> | 2016-03-06 14:52:15 +0000 |
commit | ac27fc1411248573f86d3d40315474792670d2fc (patch) | |
tree | 03a7bc812f759bdf7b191b911ca241601f2a19dd /src/lib/libssl/t1_enc.c | |
parent | eedb90ca011716f7307e2faa18bc5acff262c3d3 (diff) | |
download | openbsd-ac27fc1411248573f86d3d40315474792670d2fc.tar.gz openbsd-ac27fc1411248573f86d3d40315474792670d2fc.tar.bz2 openbsd-ac27fc1411248573f86d3d40315474792670d2fc.zip |
Make sure stdio functions don't end up in the library, from miod@
ok doug@ bcook@
Diffstat (limited to 'src/lib/libssl/t1_enc.c')
-rw-r--r-- | src/lib/libssl/t1_enc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libssl/t1_enc.c b/src/lib/libssl/t1_enc.c index 1c96abb378..5d95419e7e 100644 --- a/src/lib/libssl/t1_enc.c +++ b/src/lib/libssl/t1_enc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t1_enc.c,v 1.83 2015/09/11 18:08:21 jsing Exp $ */ | 1 | /* $OpenBSD: t1_enc.c,v 1.84 2016/03/06 14:52:15 beck Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -936,14 +936,16 @@ tls1_enc(SSL *s, int send) | |||
936 | EVP_CIPHER_mode(enc) == EVP_CIPH_CBC_MODE) | 936 | EVP_CIPHER_mode(enc) == EVP_CIPH_CBC_MODE) |
937 | ivlen = EVP_CIPHER_iv_length(enc); | 937 | ivlen = EVP_CIPHER_iv_length(enc); |
938 | if (ivlen > 1) { | 938 | if (ivlen > 1) { |
939 | if (rec->data != rec->input) | 939 | if (rec->data != rec->input) { |
940 | #ifdef DEBUG | ||
940 | /* we can't write into the input stream: | 941 | /* we can't write into the input stream: |
941 | * Can this ever happen?? (steve) | 942 | * Can this ever happen?? (steve) |
942 | */ | 943 | */ |
943 | fprintf(stderr, | 944 | fprintf(stderr, |
944 | "%s:%d: rec->data != rec->input\n", | 945 | "%s:%d: rec->data != rec->input\n", |
945 | __FILE__, __LINE__); | 946 | __FILE__, __LINE__); |
946 | else | 947 | #endif |
948 | } else | ||
947 | arc4random_buf(rec->input, ivlen); | 949 | arc4random_buf(rec->input, ivlen); |
948 | } | 950 | } |
949 | } | 951 | } |