Replace RSA by an abstract asymmetric key structure.
[paraslash.git] / client_common.c
index a7115fd75ac33495d9dd36862ff446757bd9666c..31bbc1148e5289031becc6f9d82928552c4c8a11 100644 (file)
@@ -188,7 +188,7 @@ static void client_post_select(struct sched *s, struct task *t)
                if (ret < 0 || n == 0)
                        goto out;
                PARA_INFO_LOG("<-- [challenge] (%zu bytes)\n", n);
-               ret = para_decrypt_buffer(ct->key_file, crypt_buf,
+               ret = priv_decrypt(ct->key_file, crypt_buf,
                        (unsigned char *)buf, n);
                if (ret < 0)
                        goto out;