diff options
author | 2016-03-06 14:52:15 +0000 | |
---|---|---|
committer | 2016-03-06 14:52:15 +0000 | |
commit | 12a8895594f89cfc9598a6100aa44f4bd9c9d440 (patch) | |
tree | f5a204a2e08abb97fa10018b140630875ead83ca /lib/libssl/src/ssl/d1_enc.c | |
parent | Remove unused amap_share_protect(). (diff) | |
download | wireguard-openbsd-12a8895594f89cfc9598a6100aa44f4bd9c9d440.tar.xz wireguard-openbsd-12a8895594f89cfc9598a6100aa44f4bd9c9d440.zip |
Make sure stdio functions don't end up in the library, from miod@
ok doug@ bcook@
Diffstat (limited to 'lib/libssl/src/ssl/d1_enc.c')
-rw-r--r-- | lib/libssl/src/ssl/d1_enc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libssl/src/ssl/d1_enc.c b/lib/libssl/src/ssl/d1_enc.c index c58e109ae57..8445ceb10f7 100644 --- a/lib/libssl/src/ssl/d1_enc.c +++ b/lib/libssl/src/ssl/d1_enc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: d1_enc.c,v 1.10 2015/07/17 07:04:40 doug Exp $ */ +/* $OpenBSD: d1_enc.c,v 1.11 2016/03/06 14:52:15 beck Exp $ */ /* * DTLS implementation written by Nagendra Modadugu * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. @@ -150,11 +150,13 @@ dtls1_enc(SSL *s, int send) enc = NULL; else { enc = EVP_CIPHER_CTX_cipher(s->enc_write_ctx); - if (rec->data != rec->input) + if (rec->data != rec->input) { +#ifdef DEBUG /* we can't write into the input stream */ fprintf(stderr, "%s:%d: rec->data != rec->input\n", __FILE__, __LINE__); - else if (EVP_CIPHER_block_size(ds->cipher) > 1) { +#endif + } else if (EVP_CIPHER_block_size(ds->cipher) > 1) { arc4random_buf(rec->input, EVP_CIPHER_block_size(ds->cipher)); } |