X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccrypt%2Fsilccipher.c;h=ba13a02234d91ca6f72f96b958f4562e68247e0c;hb=9734af565c9da0fdf77fd93283d7adcd8eb34b80;hp=27e63395a30f9e27efc0d410235e2984b89b73ff;hpb=6f6c6b1f52138ed5138c530614b24a503e542024;p=silc.git diff --git a/lib/silccrypt/silccipher.c b/lib/silccrypt/silccipher.c index 27e63395..ba13a022 100644 --- a/lib/silccrypt/silccipher.c +++ b/lib/silccrypt/silccipher.c @@ -90,7 +90,7 @@ const SilcCipherObject silc_default_ciphers[] = registered. Therefore, if memory has been allocated for the object sent as argument it has to be free'd after this function returns succesfully. */ -bool silc_cipher_register(SilcCipherObject *cipher) +bool silc_cipher_register(const SilcCipherObject *cipher) { #ifndef SILC_EPOC SilcCipherObject *new; @@ -168,7 +168,7 @@ bool silc_cipher_register_default(void) int i; for (i = 0; silc_default_ciphers[i].name; i++) - silc_cipher_register((SilcCipherObject *)&(silc_default_ciphers[i])); + silc_cipher_register(&(silc_default_ciphers[i])); #endif /* SILC_EPOC */ return TRUE;