aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/crypto/certinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/crypto/certinfo.h')
-rw-r--r--src/libstrongswan/crypto/certinfo.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libstrongswan/crypto/certinfo.h b/src/libstrongswan/crypto/certinfo.h
index b8be002a9..476befda8 100644
--- a/src/libstrongswan/crypto/certinfo.h
+++ b/src/libstrongswan/crypto/certinfo.h
@@ -74,6 +74,16 @@ struct certinfo_t {
*/
bool (*equals_serialNumber) (const certinfo_t *this, const certinfo_t *that);
+ /**
+ * @brief Compares two serial numbers.
+ *
+ * @param this calling object
+ * @param that second certinfo_t object
+ * @return negative if this is smaller than that
+ * zero if this equals that
+ * positive if this is greater than that
+ */
+ int (*compare_serialNumber) (const certinfo_t *this, const certinfo_t *that);
/**
* @brief Get serial number.
@@ -164,6 +174,14 @@ struct certinfo_t {
crl_reason_t (*get_revocationReason) (const certinfo_t *this);
/**
+ * @brief Set revocationReason.
+ *
+ * @param this calling object to be updated
+ * @param that object containing updated information
+ */
+ void (*update) (certinfo_t *this, const certinfo_t *that);
+
+ /**
* @brief Destroys the certinfo_t object.
*
* @param this certinfo_t to destroy