diff options
author | Bodo Möller <bodo@openssl.org> | 2002-07-09 08:49:09 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-07-09 08:49:09 +0000 |
commit | d1d0be3cd26458f36692b7b7dbe58b89d8bc8b44 (patch) | |
tree | 7d394bec6079774b5dae5c6d2d6d4d9c465170f6 /ssl/t1_enc.c | |
parent | 2c8ad4f1af8ac7ac1146249c462538fee82cceac (diff) |
emtpy fragments are not necessary for SSL_eNULL
(but noone uses it anyway)
fix t1_enc.c: use OPENSSL_NO_RC4, not NO_RC4
Diffstat (limited to 'ssl/t1_enc.c')
-rw-r--r-- | ssl/t1_enc.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index ecd2d6cbb5..1f6bb2edf3 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -490,10 +490,16 @@ printf("\nkey block\n"); */ s->s3->need_empty_fragments = 1; -#ifndef NO_RC4 - if ((s->session->cipher != NULL) && ((s->session->cipher->algorithms & SSL_ENC_MASK) == SSL_RC4)) - s->s3->need_empty_fragments = 0; + if (s->session->cipher != NULL) + { + if ((s->session->cipher->algorithms & SSL_ENC_MASK) == SSL_eNULL) + s->s3->need_empty_fragments = 0; + +#ifndef OPENSSL_NO_RC4 + if ((s->session->cipher->algorithms & SSL_ENC_MASK) == SSL_RC4) + s->s3->need_empty_fragments = 0; #endif + } } return(1); |