diff options
author | Richard Levitte <levitte@openssl.org> | 2015-12-18 17:08:49 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-01-12 13:52:22 +0100 |
commit | 6c2ff56ec606ed82cf02b9a6679b90bde6ce18aa (patch) | |
tree | 501390f334b7e216d606af1c8a5b727d7cd97b0c /apps/enc.c | |
parent | 3dcb9e4e0fb8d6ee373c44013141452e79da30cc (diff) | |
download | openssl-6c2ff56ec606ed82cf02b9a6679b90bde6ce18aa.tar.gz |
Adapt all EVP_CIPHER users for it becoming opaque
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps/enc.c')
-rw-r--r-- | apps/enc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/enc.c b/apps/enc.c index 17cc8e8742..ab91369ee7 100644 --- a/apps/enc.c +++ b/apps/enc.c @@ -528,15 +528,15 @@ int enc_main(int argc, char **argv) printf("%02X", salt[i]); printf("\n"); } - if (cipher->key_len > 0) { + if (EVP_CIPHER_key_length(cipher) > 0) { printf("key="); - for (i = 0; i < cipher->key_len; i++) + for (i = 0; i < EVP_CIPHER_key_length(cipher); i++) printf("%02X", key[i]); printf("\n"); } - if (cipher->iv_len > 0) { + if (EVP_CIPHER_iv_length(cipher) > 0) { printf("iv ="); - for (i = 0; i < cipher->iv_len; i++) + for (i = 0; i < EVP_CIPHER_iv_length(cipher); i++) printf("%02X", iv[i]); printf("\n"); } |