diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-05-17 11:15:24 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-05-21 09:18:16 +0800 |
commit | 144bb1128909b953be7c76e2d022cc86d9fe1062 (patch) | |
tree | 82dfd86b40709162693e5f602fd55f5f2709f77d /src/protocol/internal/all_ciphers.c | |
parent | aa6575788302729a321c9a14816dd267fbcb0899 (diff) | |
download | fqterm-144bb1128909b953be7c76e2d022cc86d9fe1062.tar.xz |
replace is_{en,de}crypt_ things with cipher->started
Diffstat (limited to 'src/protocol/internal/all_ciphers.c')
-rw-r--r-- | src/protocol/internal/all_ciphers.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/protocol/internal/all_ciphers.c b/src/protocol/internal/all_ciphers.c index 342f99f..d6f6f35 100644 --- a/src/protocol/internal/all_ciphers.c +++ b/src/protocol/internal/all_ciphers.c @@ -13,6 +13,22 @@ EVP_CIPHER_FUNC(aes256_ctr, EVP_aes_256_ctr, 32, 16, 16) EVP_CIPHER_FUNC(aes192_ctr, EVP_aes_192_ctr, 24, 16, 16) EVP_CIPHER_FUNC(aes128_ctr, EVP_aes_128_ctr, 16, 16, 16) +static int dummy_init(SSH_CIPHER *me, const uint8_t *key, const uint8_t *IV) +{ + return 1; +} + +static void dummy_deinit(SSH_CIPHER *me) +{ +} + +SSH_CIPHER ssh_cipher_dummy = { + .name = "(none)", + .started = false, + .init = dummy_init, + .cleanup = dummy_deinit, +}; + struct { const char *name; |