FAILED,
/**
- * Out of ressources.
+ * Out of resources.
*/
-
OUT_OF_RES,
+
/**
- * Already done.
+ * The suggested operation is already done
*/
ALREADY_DONE,
INVALID_STATE,
/**
- * Delete object which function belongs to.
+ * Destroy object which called method belongs to.
*/
- DELETE_ME,
+ DESTROY_ME,
/**
* An object got created.
/**
+ * Certificate sending policy
+ */
+typedef enum certpolicy {
+ CERT_ALWAYS_SEND = 0,
+ CERT_SEND_IF_ASKED = 1,
+ CERT_NEVER_SEND = 2,
+
+ CERT_YES_SEND = 3, /* synonym for CERT_ALWAYS_SEND */
+ CERT_NO_SEND = 4 /* synonym for CERT_NEVER_SEND */
+} certpolicy_t;
+
+/**
* String mappings for type status_t.
*/
extern mapping_t status_m[];
bool chunk_equals(chunk_t a, chunk_t b);
/**
+ * Print a chunk in hexadecimal form
+ * with each byte separated by a colon
+ */
+void chunk_to_hex(char *buf, size_t buflen, chunk_t chunk);
+
+/**
* Clone a data to a newly allocated buffer
*/
void *clalloc(void *pointer, size_t size);
+#define UNDEFINED_TIME 0
+#define TIMETOA_BUF 30
+
+/**
+ * @brief Display a date either in local or UTC time
+ *
+ * @param buf buffer where displayed time will be written to
+ * @param buflen buffer length
+ * @param time time to be displayed
+ * @param utc UTC (TRUE) or local time (FALSE)
+ *
+ */
+void timetoa(char *buf, size_t buflen, const time_t *time, bool utc);
#endif /*TYPES_H_*/