aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/crypto/x509.h
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-03-08 16:48:16 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-03-08 16:48:16 +0000
commit8d0cd21a01d4beeac4ce6ddaf79bd1e9386fb957 (patch)
tree0efac036b6e7d0f7afc05e31e7237d71ae86560a /src/libstrongswan/crypto/x509.h
parent9149635ffac0cf240a6a79457745e7b2ffe86183 (diff)
downloadstrongswan-8d0cd21a01d4beeac4ce6ddaf79bd1e9386fb957.tar.bz2
strongswan-8d0cd21a01d4beeac4ce6ddaf79bd1e9386fb957.tar.xz
support of setting and getting authority flags
Diffstat (limited to 'src/libstrongswan/crypto/x509.h')
-rwxr-xr-xsrc/libstrongswan/crypto/x509.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/libstrongswan/crypto/x509.h b/src/libstrongswan/crypto/x509.h
index 9066fd94c..a949d99d2 100755
--- a/src/libstrongswan/crypto/x509.h
+++ b/src/libstrongswan/crypto/x509.h
@@ -86,6 +86,31 @@ struct x509_t {
cert_status_t (*get_status) (const x509_t *this);
/**
+ * @brief Add authority flags
+ *
+ * @param this calling object
+ * @param flag flags to be added
+ */
+ void (*add_authority_flags) (x509_t *this, u_int flags);
+
+ /**
+ * @brief Get authority flags
+ *
+ * @param this calling object
+ * @return authority flags
+ */
+ u_int (*get_authority_flags) (x509_t *this);
+
+ /**
+ * @brief Check a specific authority flag
+ *
+ * @param this calling object
+ * @param flag flag to be checked
+ * @return TRUE if flag is present
+ */
+ bool (*has_authority_flag) (x509_t *this, u_int flag);
+
+ /**
* @brief Get the DER-encoded X.509 certificate body
*
* @param this calling object