Added silc_change_private_key_passphrase.
[crypto.git] / lib / silcutil / silcapputil.h
index 827c2ff90a666a074da555cb4c2e1b70b2a8ced0..a1b39e7fd8cbdb81f79cb59ef95dd6db5276f44d 100644 (file)
@@ -140,4 +140,24 @@ bool silc_load_key_pair(const char *pub_filename,
  ***/
 bool silc_show_public_key(const char *pub_filename);
 
+/****f* silcutil/SilcAppUtil/silc_change_private_key_passphrase
+ *
+ * SYNOPSIS
+ *
+ *    bool silc_change_private_key_passphrase(const char *prv_filename,
+ *                                            const char *old_passphrase,
+ *                                            const char *new_passphrase);
+ *
+ * DESCRIPTION
+ *
+ *    This routine can be used to change the passphrase of the private
+ *    key file, which is used to encrypt the private key.  If the old
+ *    and new passphrase is not provided for this function this will
+ *    prompt for them.
+ *
+ ***/
+bool silc_change_private_key_passphrase(const char *prv_filename,
+                                       const char *old_passphrase,
+                                       const char *new_passphrase);
+
 #endif /* SILCAPPUTIL_H */