summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/ssl/d1_enc.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-05-20 16:59:05 +0000
committerjsing <jsing@openbsd.org>2014-05-20 16:59:05 +0000
commit8d047868c1b7b1bceec17359213a2aaf7bfe1be4 (patch)
tree5e3873722b09d1927d436d6b808237b24dd257b5 /lib/libssl/src/ssl/d1_enc.c
parentregen (diff)
downloadwireguard-openbsd-8d047868c1b7b1bceec17359213a2aaf7bfe1be4.tar.xz
wireguard-openbsd-8d047868c1b7b1bceec17359213a2aaf7bfe1be4.zip
KSSL is dead... nuke KSSL_DEBUG from orbit.
ok beck@ miod@
Diffstat (limited to 'lib/libssl/src/ssl/d1_enc.c')
-rw-r--r--lib/libssl/src/ssl/d1_enc.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/libssl/src/ssl/d1_enc.c b/lib/libssl/src/ssl/d1_enc.c
index 1967e7a95e5..24b34b1e871 100644
--- a/lib/libssl/src/ssl/d1_enc.c
+++ b/lib/libssl/src/ssl/d1_enc.c
@@ -122,9 +122,6 @@
#include <openssl/hmac.h>
#include <openssl/md5.h>
#include <openssl/rand.h>
-#ifdef KSSL_DEBUG
-#include <openssl/des.h>
-#endif
/* dtls1_enc encrypts/decrypts the record in |s->wrec| / |s->rrec|, respectively.
*
@@ -177,9 +174,6 @@ dtls1_enc(SSL *s, int send)
enc = EVP_CIPHER_CTX_cipher(s->enc_read_ctx);
}
-#ifdef KSSL_DEBUG
- printf("dtls1_enc(%d)\n", send);
-#endif /* KSSL_DEBUG */
if ((s->session == NULL) || (ds == NULL) || (enc == NULL)) {
memmove(rec->data, rec->input, rec->length);
@@ -205,23 +199,6 @@ dtls1_enc(SSL *s, int send)
rec->length += i;
}
-#ifdef KSSL_DEBUG
- {
- unsigned long ui;
- printf("EVP_Cipher(ds=%p, rec->data=%p, rec->input=%p, l=%ld) ==>\n",
- ds, rec->data, rec->input, l);
- printf("\tEVP_CIPHER_CTX: %d buf_len, %d key_len [%d %d], %d iv_len\n",
- ds->buf_len, ds->cipher->key_len,
- DES_KEY_SZ, DES_SCHEDULE_SZ,
- ds->cipher->iv_len);
- printf("\t\tIV: ");
- for (i = 0; i<ds->cipher->iv_len; i++) printf("%02X", ds->iv[i]);
- printf("\n");
- printf("\trec->input=");
- for (ui = 0; ui<l; ui++) printf(" %02x", rec->input[ui]);
- printf("\n");
- }
-#endif /* KSSL_DEBUG */
if (!send) {
if (l == 0 || l % bs != 0)
@@ -230,14 +207,6 @@ dtls1_enc(SSL *s, int send)
EVP_Cipher(ds, rec->data, rec->input, l);
-#ifdef KSSL_DEBUG
- {
- unsigned long i;
- printf("\trec->data=");
- for (i = 0; i < l; i++)
- printf(" %02x", rec->data[i]); printf("\n");
- }
-#endif /* KSSL_DEBUG */
if ((bs != 1) && !send)
return tls1_cbc_remove_padding(s, rec, bs, mac_size);