Added SILC Thread Queue API
[crypto.git] / lib / silcapputil / silcapputil.h
index 3b0383586e761816604190476cdd06b65d6d405f..f4858d2ad6c31ef8d70a101a560989b28714c5d3 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2002 - 2006 Pekka Riikonen
+  Copyright (C) 2002 - 2007 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -58,7 +58,8 @@
  *    and `prv_filename' is the public key and private key filenames.
  *    The `pub_identifier' is the public key identifier (for example:
  *    "UN=foobar, HN=hostname"), or if NULL the routine generates it
- *    automatically.
+ *    automatically.  The `return_public_key' and `return_private_key' may
+ *    be NULL.
  *
  *    The `passphrase' is the passphrase that is used to encrypt the
  *    private key file.  It is recommended that you would protect your
@@ -117,7 +118,21 @@ SilcBool silc_load_key_pair(const char *pub_filename,
  *
  * SYNOPSIS
  *
- *    SilcBool silc_show_public_key(const char *pub_filename);
+ *    SilcBool silc_show_public_key(SilcPublicKey public_key);
+ *
+ * DESCRIPTION
+ *
+ *    This routine can be used to dump the SILC public key into human
+ *    readable form into stdout.  Returns FALSE on error.
+ *
+ ***/
+SilcBool silc_show_public_key(SilcPublicKey public_key);
+
+/****f* silcapputil/SilcAppUtil/silc_show_public_key_file
+ *
+ * SYNOPSIS
+ *
+ *    SilcBool silc_show_public_key_file(const char *pub_filename);
  *
  * DESCRIPTION
  *
@@ -126,7 +141,7 @@ SilcBool silc_load_key_pair(const char *pub_filename,
  *    into human readable form into stdout.  Returns FALSE on error.
  *
  ***/
-SilcBool silc_show_public_key(const char *pub_filename);
+SilcBool silc_show_public_key_file(const char *pub_filename);
 
 /****f* silcapputil/SilcAppUtil/silc_change_private_key_passphrase
  *
@@ -274,10 +289,10 @@ unsigned char *silc_channel_name_check(const unsigned char *identifier,
  * SYNOPSIS
  *
  *    SilcBool
- *    silc_channel_name_check(const unsigned char *identifier,
- *                            SilcUInt32 identifier_len,
- *                            SilcStringEncoding identifier_encoding,
- *                            SilcUInt32 max_allowed_length);
+ *    silc_channel_name_veirfy(const unsigned char *identifier,
+ *                             SilcUInt32 identifier_len,
+ *                             SilcStringEncoding identifier_encoding,
+ *                             SilcUInt32 max_allowed_length);
  *
  * DESCRIPTION
  *