diff options
author | Ulf Möller <ulf@openssl.org> | 1999-08-14 20:49:37 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-08-14 20:49:37 +0000 |
commit | 364836ca1cfb86815b0f9b8d29b68d74e0059bfc (patch) | |
tree | 4b11ed21a70bec8c4102159fffe297c19dff708f /crypto/evp/encode.c | |
parent | 0b7618888b2af3db2676da1b15da70631ccd248e (diff) | |
download | openssl-new-364836ca1cfb86815b0f9b8d29b68d74e0059bfc.tar.gz |
Undo base64 decoding change (was not a bug fix).
Diffstat (limited to 'crypto/evp/encode.c')
-rw-r--r-- | crypto/evp/encode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/evp/encode.c b/crypto/evp/encode.c index 110435d5df..c532a18eeb 100644 --- a/crypto/evp/encode.c +++ b/crypto/evp/encode.c @@ -291,15 +291,15 @@ int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, /* If we are at the end of input and it looks like a * line, process it. */ - if (((i+1) == inl) && (((n&3) == 0) || eof)) + if (((i+1) == inl) && (eof)) v=B64_EOF; - if ((v == B64_EOF) || (n >= 68)) + if ((v == B64_EOF) || (n >= 64)) { /* This is needed to work correctly on 64 byte input * lines. We process the line and then need to * accept the '\n' */ - if ((v != B64_EOF) && (n >= 68)) exp_nl=1; + if ((v != B64_EOF) && (n >= 64)) exp_nl=1; tmp2=v; if (n > 0) { |