aboutsummaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-09-10 00:47:24 +0000
committerNick Mathewson <nickm@torproject.org>2003-09-10 00:47:24 +0000
commit9955b265ab77c712861f33411e521c9761184226 (patch)
tree3cd11789926945c80a6f34ae0101437fe60cb12b /src/or/test.c
parent67697d5ab197c09f90adafef7d82895cfdbbb085 (diff)
downloadtor-9955b265ab77c712861f33411e521c9761184226.tar
tor-9955b265ab77c712861f33411e521c9761184226.tar.gz
Make crypto structures private to crypto.c
svn:r437
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/test.c b/src/or/test.c
index da982cd0b..e8a9c18d1 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -269,7 +269,7 @@ test_crypto()
test_neq(env2, 0);
j = crypto_cipher_generate_key(env1);
if (str_ciphers[i] != CRYPTO_CIPHER_IDENTITY) {
- crypto_cipher_set_key(env2, env1->key);
+ crypto_cipher_set_key(env2, crypto_cipher_get_key(env1));
}
crypto_cipher_set_iv(env1, "12345678901234567890");
crypto_cipher_set_iv(env2, "12345678901234567890");
@@ -309,7 +309,7 @@ test_crypto()
env2 = crypto_new_cipher_env(str_ciphers[i]);
test_neq(env2, 0);
if (str_ciphers[i] != CRYPTO_CIPHER_IDENTITY) {
- crypto_cipher_set_key(env2, env1->key);
+ crypto_cipher_set_key(env2, crypto_cipher_get_key(env1));
}
crypto_cipher_set_iv(env2, "12345678901234567890");
crypto_cipher_encrypt_init_cipher(env2);