*
* SYNOPSIS
*
- * char *silc_get_time();
+ * const char *silc_get_time(SilcUInt32 timeval)
*
* DESCRIPTION
*
- * Returns current time as string.
+ * Returns time as string. If the the `timeval' is non-zero that
+ * value is returned as string. If it is zero the current time of the
+ * local machine is returned.
*
***/
-char *silc_get_time();
+const char *silc_get_time(SilcUInt32 timeval);
/****f* silcutil/SilcUtilAPI/silc_to_upper
*
*
* DESCRIPTION
*
- * Creates fingerprint from data, usually used with SHA1 digests.
+ * Return a textual representation of the fingerprint in *data, the
+ * caller must free the returned string.
*
***/
char *silc_fingerprint(const unsigned char *data, SilcUInt32 data_len);
*
* DESCRIPTION
*
- * Return current time to struct timeval.
- *
- * This function is system dependant.
+ * Return current time to struct timeval. This function is system
+ * dependant. Returns 0 on success and -1 on error.
*
***/
int silc_gettimeofday(struct timeval *p);
+/****f* silcutil/SilcUtilAPI/silc_compare_timeval
+ *
+ * SYNOPSIS
+ *
+ * bool silc_compare_timeval(struct timeval *smaller,
+ * struct timeval *bigger)
+ *
+ * DESCRIPTION
+ *
+ * Compare two timeval structures and return TRUE if the first
+ * time value is smaller than the second time value.
+ *
+ ***/
+bool silc_compare_timeval(struct timeval *smaller,
+ struct timeval *bigger);
+
/****f* silcutil/SilcUtilAPI/silc_string_regexify
*
* SYNOPSIS
* DESCRIPTION
*
* Returns the username of the user. If the global variable LOGNAME
- * does not exists we will get the name from the passwd file.
+ * does not exists we will get the name from the passwd file. The
+ * caller must free the returned name.
*
* This function is system dependant.
*
*
* DESCRIPTION
*
- * Returns the real name of ther user from the passwd file.
+ * Returns the real name of ther user from the passwd file. The
+ * caller must free the returned name.
*
* This function is system dependant.
*