summaryrefslogtreecommitdiff
path: root/src/cipher.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-12-31 18:21:29 +0000
committerChristian Pointner <equinox@anytun.org>2008-12-31 18:21:29 +0000
commit90eb2a6d56a4287410fd5d2717e70d01e80c9a3d (patch)
tree3460d36ec9e9c3cf651af9f6aa5d79ca4ac3df27 /src/cipher.h
parentremoved useless malloc for udp_t (diff)
removed useless malloc for cipher_t
Diffstat (limited to 'src/cipher.h')
-rw-r--r--src/cipher.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cipher.h b/src/cipher.h
index 0bb3f5f..344b7a0 100644
--- a/src/cipher.h
+++ b/src/cipher.h
@@ -45,10 +45,10 @@ struct cipher_struct {
};
typedef struct cipher_struct cipher_t;
-void cipher_init(cipher_t** c, const char* type);
+int cipher_init(cipher_t* c, const char* type);
void cipher_set_key(cipher_t* c, u_int8_t* key, u_int32_t len);
void cipher_set_salt(cipher_t* c, u_int8_t* salt, u_int32_t len);
-void cipher_close(cipher_t** c);
+void cipher_close(cipher_t* c);
void cipher_encrypt(cipher_t* c, plain_packet_t* in, encrypted_packet_t* out, seq_nr_t seq_nr, sender_id_t sender_id, mux_t mux);
void cipher_decrypt(cipher_t* c, encrypted_packet_t* in, plain_packet_t* out);