From 85fcbed91d7ab78606b3c83722ac5a1427b8c212 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Sun, 15 Sep 2013 09:13:46 +0800 Subject: [PATCH] fix a typo --- src/encrypt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/encrypt.c b/src/encrypt.c index 7a95a4f8..2e7f642e 100644 --- a/src/encrypt.c +++ b/src/encrypt.c @@ -180,7 +180,7 @@ char* ss_encrypt_all(int buf_size, char *plaintext, ssize_t *len, int method) } EVP_CIPHER_CTX evp; EVP_CIPHER_CTX_init(&evp); - if (!EVP_CipherInit_ex&(evp, cipher, NULL, NULL, NULL, 1)) + if (!EVP_CipherInit_ex(&evp, cipher, NULL, NULL, NULL, 1)) { LOGE("Cannot initialize cipher %s", supported_ciphers[method]); exit(EXIT_FAILURE); @@ -310,7 +310,7 @@ char* ss_decrypt_all(int buf_size, char *ciphertext, ssize_t *len, int method) } EVP_CIPHER_CTX evp; EVP_CIPHER_CTX_init(&evp); - if (!EVP_CipherInit_ex&(evp, cipher, NULL, NULL, NULL, 0)) + if (!EVP_CipherInit_ex(&evp, cipher, NULL, NULL, NULL, 0)) { LOGE("Cannot initialize cipher %s", supported_ciphers[method]); exit(EXIT_FAILURE);