diff options
author | Richard Levitte <levitte@openssl.org> | 2015-12-11 16:07:48 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-12-11 16:18:01 +0100 |
commit | a0be4fd17b1c7f5ab8f8e11c71d71a5dd20158f4 (patch) | |
tree | 867acd10d2210da3dce3d5a90f4dac6c213ce194 /crypto/evp/evp_locl.h | |
parent | 1ee3b17fa0efc0505c157f537c976d188bfa25b3 (diff) | |
download | openssl-a0be4fd17b1c7f5ab8f8e11c71d71a5dd20158f4.zip openssl-a0be4fd17b1c7f5ab8f8e11c71d71a5dd20158f4.tar.gz openssl-a0be4fd17b1c7f5ab8f8e11c71d71a5dd20158f4.tar.bz2 |
Make EVP_ENCODE_CTX opaque
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/evp/evp_locl.h')
-rw-r--r-- | crypto/evp/evp_locl.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crypto/evp/evp_locl.h b/crypto/evp/evp_locl.h index 918ff0a..89ac37e 100644 --- a/crypto/evp/evp_locl.h +++ b/crypto/evp/evp_locl.h @@ -279,3 +279,19 @@ int PKCS5_v2_PBKDF2_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, ASN1_TYPE *param, const EVP_CIPHER *c, const EVP_MD *md, int en_de); + +struct evp_Encode_Ctx_st { + /* number saved in a partial encode/decode */ + int num; + /* + * The length is either the output line length (in input bytes) or the + * shortest input line length that is ok. Once decoding begins, the + * length is adjusted up each time a longer line is decoded + */ + int length; + /* data to encode */ + unsigned char enc_data[80]; + /* number read on current line */ + int line_num; + int expect_nl; +}; |