Global cosmetic change.
authorPekka Riikonen <priikone@silcnet.org>
Wed, 5 Jul 2000 06:05:15 +0000 (06:05 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Wed, 5 Jul 2000 06:05:15 +0000 (06:05 +0000)
23 files changed:
lib/silccore/id.c
lib/silccore/idcache.c
lib/silccore/silcbuffer.c
lib/silccore/silcbuffmt.c
lib/silccore/silcbufutil.c
lib/silccore/silcchannel.c
lib/silccore/silccommand.c
lib/silccore/silcconfig.c
lib/silccore/silclog.c
lib/silccore/silcnet.c
lib/silccore/silcpacket.c
lib/silccore/silcprotocol.c
lib/silccore/silcschedule.c
lib/silccore/silcsockconn.c
lib/silccore/silctask.c
lib/silccrypt/silccipher.c
lib/silccrypt/silchash.c
lib/silccrypt/silchmac.c
lib/silccrypt/silcrng.c
lib/silcmath/silcprimegen.c
lib/silcske/groups.c
lib/silcske/payload.c
lib/silcske/silcske.c

index d7aaf3af65ffd244528053cdc1e7c3f05e8079d4..ccfa04ca5752574f21240f7c814a90fab3becf0d 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:55  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:06:35  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
index a16bdc10c325c84db143006c9e6bddbaab521074..0d3f4e9b12668c5a3978fe5c27d167d552831f7f 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:55  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:06:35  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
@@ -114,8 +117,6 @@ int silc_idcache_add(SilcIDCache **cache, unsigned int cache_count,
 
   if (c == NULL) {
     c = silc_calloc(5, sizeof(*c));
-    if (!c)
-      return 0;
     cache_count = 5;
   }
 
@@ -136,8 +137,6 @@ int silc_idcache_add(SilcIDCache **cache, unsigned int cache_count,
 
   if (i == cache_count) {
     c = silc_realloc(c, sizeof(*c) * (cache_count + 5));
-    if (!c)
-      return cache_count;
     for (i = cache_count; i < cache_count + 5; i++) {
       c[i].data = NULL;
       c[i].id = NULL;
index 662cf31e4643f2e34284b7ce822549be75703942..fc2b6b4037a3cf1c67c37f4837c2ebbe26adff0a 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:55  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:06:35  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
@@ -88,13 +91,9 @@ SilcBuffer silc_buffer_alloc(unsigned int len)
 
   /* Allocate new SilcBuffer */
   sb = silc_calloc(1, sizeof(*sb));
-  if (!sb)
-    return NULL;
 
   /* Allocate the actual data area */
-  data = silc_malloc(len);
-  if (!data)
-    return NULL;
+  data = silc_calloc(len, sizeof(*data));
   memset(data, 0, len);
 
   /* Set pointers to the new buffer */
index 5d56f180bfcdd6bf9257cdbd83ff202e389b8c49..95fe728811f22ee928d2d39ebf1ef03b040002c1 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:55  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:06:35  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
index f89389d174cf7d70a0de9f0f759a251770cdcb7e..53a676f8fe0fd5230524ba106a8816fa94aa7b48 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:55  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:06:35  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
index 6355f7107a5fe95d8ca92977245ed15e1b44862d..4cfe30022fb45114732eb0c5c943ca6ce94cfa92 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:55  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:06:35  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
@@ -60,10 +63,6 @@ SilcChannelPayload silc_channel_parse_payload(SilcBuffer buffer)
   SILC_LOG_DEBUG(("Parsing channel payload"));
 
   new = silc_calloc(1, sizeof(*new));
-  if (!new) {
-    SILC_LOG_ERROR(("Could not allocate new channel payload"));
-    return NULL;
-  }
 
   /* Parse the Channel Payload. Ignore padding and IV, we don't need
      them. */
@@ -119,8 +118,6 @@ SilcBuffer silc_channel_encode_payload(unsigned short nick_len,
   /* Allocate channel payload buffer */
   len += pad_len;
   buffer = silc_buffer_alloc(len + iv_len);
-  if (!buffer)
-    return NULL;
 
   /* Generate padding */
   for (i = 0; i < pad_len; i++)
@@ -198,10 +195,6 @@ SilcChannelKeyPayload silc_channel_key_parse_payload(SilcBuffer buffer)
   SILC_LOG_DEBUG(("Parsing channel key payload"));
 
   new = silc_calloc(1, sizeof(*new));
-  if (!new) {
-    SILC_LOG_ERROR(("Could not allocate new channel key payload"));
-    return NULL;
-  }
 
   /* Parse the Channel Key Payload */
   silc_buffer_unformat(buffer,
@@ -252,8 +245,6 @@ SilcBuffer silc_channel_key_encode_payload(unsigned short id_len,
      2 + cipher */
   len = 2 + id_len + 2 + key_len + 2 + cipher_len;
   buffer = silc_buffer_alloc(len);
-  if (!buffer)
-    return NULL;
 
   silc_buffer_pull_tail(buffer, SILC_BUFFER_END(buffer));
 
index 881477d1111756052d3b1c022bb8414cc6ebabcc..9564d4e0b03260bfd839a1713dc2cc30ef09c913 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:55  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:06:35  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
@@ -58,10 +61,6 @@ SilcCommandPayload silc_command_parse_payload(SilcBuffer buffer)
   SILC_LOG_DEBUG(("Parsing command payload"));
 
   new = silc_calloc(1, sizeof(*new));
-  if (!new) {
-    SILC_LOG_ERROR(("Could not allocate new command payload"));
-    return NULL;
-  }
 
   /* Parse the Command Payload */
   silc_buffer_unformat(buffer, 
index bb3242235447376d76aeb9c43329ee7a354ae0ca..59fefec7e485f116436549f8f6b7de8020d1532f 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:55  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:06:35  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
index cc74119d5f987fd20fec34cac9e3e73df5ab72da..aecd6bf50c5b55e0d30d6315fc91bfa30a730879 100644 (file)
 /*
  * $Id$
  * $Log$
+ * Revision 1.3  2000/07/05 06:06:35  priikone
+ *     Global cosmetic change.
+ *
  * Revision 1.2  2000/07/03 05:53:58  priikone
  *     Fixed file purging bug.  The purging should work now ok.
  *
  * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
- *     Importet from internal CVS/Added Log headers.
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
index 3104b67c72a20b45790acf2b58b004c22968b213..989020f7190d36ad69cd073a94edf257c47394ac 100644 (file)
 /*
  * $Id$
  * $Log$
+ * Revision 1.3  2000/07/05 06:06:35  priikone
+ *     Global cosmetic change.
+ *
  * Revision 1.2  2000/06/30 10:49:48  priikone
  *     Added SOCKS4 and SOCKS5 support for SILC client.
  *
  * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
- *     Importet from internal CVS/Added Log headers.
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
index d23646342629bb38cd686cca046b5a5d03b73de7..f0d92ab5cb60bb5000e98d57f485d8e6d52c0109 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:55  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:06:35  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
index 56a0891201dc1721687d40823eaa95ee2e8b0243..cda59efcee515de7c62817006124c35f59fde960 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:55  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:06:35  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
@@ -54,11 +57,6 @@ void silc_protocol_alloc(SilcProtocolType type, SilcProtocol *new_protocol,
   }
 
   *new_protocol = silc_calloc(1, sizeof(**new_protocol));
-  if (*new_protocol == NULL) {
-    SILC_LOG_ERROR(("Cannot allocate new protocol object"));
-    return;
-  }
-
   (*new_protocol)->protocol = (SilcProtocolObject *)&silc_protocol_list[i];
   (*new_protocol)->state = SILC_PROTOCOL_STATE_UNKNOWN;
   (*new_protocol)->context = context;
index 5ae44e61637793658fa6eb031ff3bd7c3e690883..78090738333f99cfed525020fa475ea6add20207 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:55  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:06:35  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
index f6de8aa9a81db41d3f2a6e38758b83ef493c4636..79ea3f84a676929fe1d9d8426e1aad25f8fcccd8 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:55  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:06:35  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
@@ -36,14 +39,9 @@ void silc_socket_alloc(int sock, SilcSocketType type, void *user_data,
 {
   SILC_LOG_DEBUG(("Allocating new socket connection object"));
 
-  *new_socket = silc_calloc(1, sizeof(**new_socket));
-  if (*new_socket == NULL) {
-    SILC_LOG_ERROR(("Could not allocate new socket connection object"));
-    return;
-  }
-
   /* Set the pointers. Incoming and outgoing data buffers
      are allocated by the server when they are first used. */
+  *new_socket = silc_calloc(1, sizeof(**new_socket));
   (*new_socket)->sock = sock;
   (*new_socket)->type = type;
   (*new_socket)->user_data = user_data;
index 33a055142b7f6f91d1e4592125039d2c173067d9..cc177dc15a862c3a4b133648594558451db08ee2 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:55  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:06:35  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
@@ -38,11 +41,6 @@ void silc_task_queue_alloc(SilcTaskQueue *new, int valid)
   SILC_LOG_DEBUG(("Allocating new task queue"));
 
   *new = silc_calloc(1, sizeof(**new));
-  if (*new == NULL) {
-    SILC_LOG_ERROR(("Could not allocate new task queue object: %s", 
-                   strerror(errno)));
-    return;
-  }
 
   /* Set the pointers */
   (*new)->valid = valid;
@@ -371,11 +369,6 @@ SilcTask silc_task_register(SilcTaskQueue queue, int fd,
   }
 
   new = silc_calloc(1, sizeof(*new));
-  if (!new) {
-    SILC_LOG_ERROR(("Could not allocate new task object"));
-    return NULL;
-  }
-
   new->fd = fd;
   new->context = context;
   new->callback = cb;
index 72bbc435447e2b33163892ca006f44c7e41c28aa..6bef0f15a5f005a02cb925fba4ab0ac16eda96d3 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:54  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:08:43  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:54  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
@@ -75,18 +78,7 @@ int silc_cipher_register(SilcCipherObject *cipher)
   SILC_LOG_DEBUG(("Registering new cipher"));
 
   new = silc_calloc(1, sizeof(*new));
-  if (!new) {
-    SILC_LOG_ERROR(("Could not allocate new cipher list object: %s",
-                   strerror(errno)));
-    return FALSE;
-  }
-
   new->cipher = silc_calloc(1, sizeof(*new->cipher));
-  if (!new->cipher) {
-    SILC_LOG_ERROR(("Could not allocate new cipher object: %s",
-                   strerror(errno)));
-    return FALSE;
-  }
 
   /* Set the pointers */
   new->cipher->name = strdup(cipher->name);
@@ -180,10 +172,6 @@ int silc_cipher_alloc(const unsigned char *name, SilcCipher *new_cipher)
 
   /* Allocate the new object */
   *new_cipher = silc_calloc(1, sizeof(**new_cipher));
-  if (*new_cipher == NULL) {
-    SILC_LOG_ERROR(("Could not allocate new cipher object"));
-    return FALSE;
-  }
   
   if (silc_cipher_list) {
 
index 8068085368883be3fd7b7ccc7f7fc151f9894bab..547cb60d0a42421f7c4d6c4270ebe96f77bc188b 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:55  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:08:43  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
@@ -63,16 +66,7 @@ int silc_hash_register(SilcHashObject *hash)
   SILC_LOG_DEBUG(("Registering new hash function"));
 
   new = silc_calloc(1, sizeof(*new));
-  if (!new) {
-    SILC_LOG_ERROR(("Could not allocate new hash list object"));
-    return FALSE;
-  }
-
   new->hash = silc_calloc(1, sizeof(*new->hash));
-  if (!new->hash) {
-    SILC_LOG_ERROR(("Could not allocate new hash object"));
-    return FALSE;
-  }
 
   /* Set the pointers */
   new->hash->name = silc_calloc(1, strlen(hash->name));
@@ -163,10 +157,6 @@ int silc_hash_alloc(const unsigned char *name, SilcHash *new_hash)
 
   /* Allocate the new object */
   *new_hash = silc_calloc(1, sizeof(**new_hash));
-  if (*new_hash == NULL) {
-    SILC_LOG_ERROR(("Could not allocate new hash object"));
-    return FALSE;
-  }
 
   if (silc_hash_list) {
     h = silc_hash_list;
index ddf7453b544b247b0af0b34d80ea2d1aba583481..8554ddbddef92b5ca14233ec3664f9ea1eb8fd61 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:55  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:08:43  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
@@ -37,11 +40,6 @@ int silc_hmac_alloc(SilcHash hash, SilcHmac *new_hmac)
   SILC_LOG_DEBUG(("Allocating new hmac object"));
 
   *new_hmac = silc_calloc(1, sizeof(**new_hmac));
-  if (*new_hmac == NULL) {
-    SILC_LOG_ERROR(("Could not allocate new hmac object"));
-    return 0;
-  }
-
   (*new_hmac)->hash = hash;
   (*new_hmac)->set_key = silc_hmac_set_key;
   (*new_hmac)->make_hmac = silc_hmac_make;
index d5f253333ee871a3d2f0090282985a9a5a7567c6..9470fb034e0bd0b81d3adf608ef085a3c89ca6e5 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:55  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:08:43  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:55  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
@@ -112,10 +115,6 @@ SilcRng silc_rng_alloc()
   SILC_LOG_DEBUG(("Allocating new RNG object"));
 
   new = silc_calloc(1, sizeof(*new));
-  if (!new) {
-    SILC_LOG_ERROR(("Could not allocate new RNG object"));
-    return NULL;
-  }
 
   memset(new->pool, 0, sizeof(new->pool));
   memset(new->key, 0, sizeof(new->key));
@@ -151,13 +150,13 @@ void silc_rng_init(SilcRng rng)
   SILC_LOG_DEBUG(("Initializing RNG object"));
 
   /* Initialize the states for the RNG. */
-  rng->state = silc_malloc(sizeof(*rng->state));
+  rng->state = silc_calloc(1, sizeof(*rng->state));
   rng->state->low = 0;
   rng->state->pos = 8;
   rng->state->next = NULL;
   first = rng->state;
   for (i = SILC_RNG_STATE_NUM - 1; i >= 1; i--) {
-    next = silc_malloc(sizeof(*rng->state));
+    next = silc_calloc(1, sizeof(*rng->state));
     next->low = 
       (i * (sizeof(rng->pool) / SILC_RNG_STATE_NUM));
     next->pos =
@@ -424,8 +423,6 @@ unsigned char *silc_rng_get_rn_string(SilcRng rng, unsigned int len)
   unsigned char *string;
 
   string = silc_calloc((len * 2 + 1), sizeof(unsigned char));
-  if (string == NULL)
-    return NULL;
 
   for (i = 0; i < len; i++)
     sprintf(string + 2 * i, "%02x", silc_rng_get_byte(rng));
index 14719be26dce7cfb8c6b0cee5726a90fe926217f..737a09ad8bcf97eccae4a4982b29c45214dce3c2 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:51  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:06:52  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:51  priikone
+ *     Importet from internal CVS/Added Log headers.
  *
  *
  */
@@ -247,7 +250,7 @@ int silc_math_gen_prime(SilcInt *prime, unsigned int bits, int verbose)
 
   /* Init modulo table with the prime candidate and the primes
      in the primetable. */
-  spmods = silc_malloc(sizeof(primetable) * sizeof(unsigned int));
+  spmods = silc_calloc(1, sizeof(primetable) * sizeof(unsigned int));
   for (i = 0; primetable[i] != 0; i++) {
     silc_mp_mod_ui(&tmp, prime, primetable[i]);
     spmods[i] = silc_mp_get_ui(&tmp);
index 647064cd30b9b1b7c30f05e00de7f5e3a3f80470..18d70c6c29027f6af6bdd1a4a13f26f4828e25a0 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:56  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:05:15  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:56  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
index 07cebf576ac2f322318c00e294fb599ec8428359..690899203c20158ca0152da1f3e279d9f93da2e2 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:56  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:05:15  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:56  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
@@ -50,10 +53,6 @@ SilcSKEStatus silc_ske_payload_start_encode(SilcSKE ske,
 
   /* Allocate channel payload buffer. */
   buf = silc_buffer_alloc(payload->len);
-  if (!buf) {
-    SILC_LOG_ERROR(("Could not allocate encode buffer"));
-    return SILC_SKE_STATUS_ERROR;
-  }
 
   silc_buffer_pull_tail(buf, payload->len);
 
@@ -290,10 +289,6 @@ SilcSKEStatus silc_ske_payload_one_encode(SilcSKE ske,
   /* Allocate channel payload buffer. The length of the buffer
      is 2 + e. */
   buf = silc_buffer_alloc(e_len + 2);
-  if (!buf) {
-    SILC_LOG_ERROR(("Could not allocate encode buffer"));
-    return SILC_SKE_STATUS_ERROR;
-  }
 
   silc_buffer_pull_tail(buf, e_len + 2);
 
@@ -406,10 +401,6 @@ SilcSKEStatus silc_ske_payload_two_encode(SilcSKE ske,
      is 2 + 2 + public key + 2 + f + 2 + signature. */
   len = payload->pk_len + 2 + 2 + f_len + 2 + payload->sign_len + 2;
   buf = silc_buffer_alloc(len);
-  if (!buf) {
-    SILC_LOG_ERROR(("Could not allocate encode buffer"));
-    return SILC_SKE_STATUS_ERROR;
-  }
 
   silc_buffer_pull_tail(buf, len);
 
index db3f24db3c7c719258075c37c2d97ff358f608d1..e29a186dc49e620fb7453c1ea80613a5f4a5a91f 100644 (file)
 /*
  * $Id$
  * $Log$
- * Revision 1.1  2000/06/27 11:36:56  priikone
- * Initial revision
+ * Revision 1.2  2000/07/05 06:05:15  priikone
+ *     Global cosmetic change.
+ *
+ * Revision 1.1.1.1  2000/06/27 11:36:56  priikone
+ *     Imported from internal CVS/Added Log headers.
  *
  *
  */
@@ -39,10 +42,6 @@ SilcSKE silc_ske_alloc()
   SILC_LOG_DEBUG(("Allocating new Key Exchange object"));
 
   ske = silc_calloc(1, sizeof(*ske));
-  if (!ske) {
-    SILC_LOG_ERROR(("Could not allocate new SKE object"));
-    return NULL;
-  }
 
   return ske;
 }