+Sun Mar 27 19:03:31 CEST 2005 Patrik Weiskircher <pat@icore.at>
+
+ * Added Parameter dont_register_crypto_library to
+ SilcClientParam. If set to TRUE, silcclient library will
+ not initalize the Crypto Libraries and application
+ will need to do it. Affected file lib/silcclient/silcclient.h,
+ lib/silcclient/client.c.
+
Sun Mar 27 19:02:48 EEST 2005 Pekka Riikonen <priikone@silcnet.org>
* Imported new silc_utf8_[encode|decode] routines from
if (client) {
if (client->rng)
silc_rng_free(client->rng);
-
- silc_cipher_unregister_all();
- silc_pkcs_unregister_all();
- silc_hash_unregister_all();
- silc_hmac_unregister_all();
+
+ if (!client->internal->params->dont_register_crypto_library) {
+ silc_cipher_unregister_all();
+ silc_pkcs_unregister_all();
+ silc_hash_unregister_all();
+ silc_hmac_unregister_all();
+ }
silc_hash_free(client->md5hash);
silc_hash_free(client->sha1hash);
assert(client->hostname);
assert(client->realname);
- /* Initialize the crypto library. If application has done this already
- this has no effect. Also, we will not be overriding something
- application might have registered earlier. */
- silc_cipher_register_default();
- silc_pkcs_register_default();
- silc_hash_register_default();
- silc_hmac_register_default();
+ if (!client->internal->params->dont_register_crypto_library) {
+ /* Initialize the crypto library. If application has done this already
+ this has no effect. Also, we will not be overriding something
+ application might have registered earlier. */
+ silc_cipher_register_default();
+ silc_pkcs_register_default();
+ silc_hash_register_default();
+ silc_hmac_register_default();
+ }
/* Initialize hash functions for client to use */
silc_hash_alloc("md5", &client->md5hash);
not want to use them set this to TRUE. See SilcAttribute and
silc_client_attribute_add for more information on attributes. */
bool ignore_requested_attributes;
+
+ /* If this is set to TRUE, the silcclient library will not register and
+ deregister the cipher, pkcs, hash and hmac algorithms. The application
+ itself will need to handle that. */
+ bool dont_register_crypto_library;
} SilcClientParams;
/***/