changed prefix of crl_reason_t values from CRL_ to CRL_REASON_
[strongswan.git] / src / libstrongswan / credentials / certificates / crl.h
index 752293f..3d47961 100644 (file)
@@ -26,20 +26,20 @@ typedef struct crl_t crl_t;
 typedef enum crl_reason_t crl_reason_t;
 
 #include <library.h>
-#include <utils/linked_list.h>
+#include <credentials/certificates/certificate.h>
 
 /**
  * RFC 2459 CRL reason codes
  */
 enum crl_reason_t {
-    CRL_UNSPECIFIED                    = 0,
-    CRL_KEY_COMPROMISE                 = 1,
-    CRL_CA_COMPROMISE                  = 2,
-    CRL_AFFILIATION_CHANGED            = 3,
-    CRL_SUPERSEDED                             = 4,
-    CRL_CESSATION_OF_OPERATON  = 5,
-    CRL_CERTIFICATE_HOLD               = 6,
-    CRL_REMOVE_FROM_CRL                        = 8,
+    CRL_REASON_UNSPECIFIED            = 0,
+    CRL_REASON_KEY_COMPROMISE         = 1,
+    CRL_REASON_CA_COMPROMISE          = 2,
+    CRL_REASON_AFFILIATION_CHANGED    = 3,
+    CRL_REASON_SUPERSEDED             = 4,
+    CRL_REASON_CESSATION_OF_OPERATON  = 5,
+    CRL_REASON_CERTIFICATE_HOLD       = 6,
+    CRL_REASON_REMOVE_FROM_CRL        = 8,
 };
 
 /**
@@ -58,13 +58,6 @@ struct crl_t {
        certificate_t certificate;
        
        /**
-        * Is that newer than this?
-        *
-        * @return                      TRUE if newer, FALSE otherwise
-        */
-       bool (*is_newer)(crl_t *this, crl_t *that);
-       
-       /**
         * Get the CRL serial number.
         *
         * @return                      chunk pointing to internal crlNumber
@@ -74,9 +67,9 @@ struct crl_t {
        /**
         * Get the the authorityKeyIdentifier.
         *
-        * @return                      authKeyIdentifier as identification_t*
+        * @return                      authKeyIdentifier chunk, point to internal data
         */
-       identification_t* (*get_authKeyIdentifier)(crl_t *this);
+       chunk_t (*get_authKeyIdentifier)(crl_t *this);
        
        /**
         * Create an enumerator over all revoked certificates.
@@ -90,4 +83,4 @@ struct crl_t {
        
 };
 
-#endif /* CRL_H_ @}*/
+#endif /** CRL_H_ @}*/