diff options
Diffstat (limited to 'usr/src/common/openssl/crypto/evp/bio_enc.c')
| -rw-r--r-- | usr/src/common/openssl/crypto/evp/bio_enc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/common/openssl/crypto/evp/bio_enc.c b/usr/src/common/openssl/crypto/evp/bio_enc.c index ab81851503..f6ac94c6e1 100644 --- a/usr/src/common/openssl/crypto/evp/bio_enc.c +++ b/usr/src/common/openssl/crypto/evp/bio_enc.c @@ -71,7 +71,7 @@ static int enc_new(BIO *h); static int enc_free(BIO *data); static long enc_callback_ctrl(BIO *h, int cmd, bio_info_cb *fps); #define ENC_BLOCK_SIZE (1024*4) -#define BUF_OFFSET EVP_MAX_BLOCK_LENGTH +#define BUF_OFFSET (EVP_MAX_BLOCK_LENGTH*2) typedef struct enc_struct { @@ -405,8 +405,8 @@ EVP_CIPHER_ctx *c; } */ -void BIO_set_cipher(BIO *b, const EVP_CIPHER *c, unsigned char *k, - unsigned char *i, int e) +void BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k, + const unsigned char *i, int e) { BIO_ENC_CTX *ctx; |
