summaryrefslogtreecommitdiff
path: root/src/libcharon/encoding/payloads/auth_payload.h
diff options
context:
space:
mode:
authorRené Mayrhofer <rene@mayrhofer.eu.org>2011-03-05 09:20:09 +0100
committerRené Mayrhofer <rene@mayrhofer.eu.org>2011-03-05 09:20:09 +0100
commit568905f488e63e28778f87ac0e38d845f45bae79 (patch)
treed9969a147e36413583ff4bc75542d34c955f8823 /src/libcharon/encoding/payloads/auth_payload.h
parentf73fba54dc8b30c6482e1e8abf15bbf455592fcd (diff)
downloadvyos-strongswan-568905f488e63e28778f87ac0e38d845f45bae79.tar.gz
vyos-strongswan-568905f488e63e28778f87ac0e38d845f45bae79.zip
Imported Upstream version 4.5.1
Diffstat (limited to 'src/libcharon/encoding/payloads/auth_payload.h')
-rw-r--r--src/libcharon/encoding/payloads/auth_payload.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/libcharon/encoding/payloads/auth_payload.h b/src/libcharon/encoding/payloads/auth_payload.h
index 37ee149db..e4c4e6ae3 100644
--- a/src/libcharon/encoding/payloads/auth_payload.h
+++ b/src/libcharon/encoding/payloads/auth_payload.h
@@ -62,29 +62,31 @@ struct auth_payload_t {
/**
* Set the AUTH data.
*
- * Data gets cloned.
- *
- * @param data AUTH data as chunk_t
+ * @param data AUTH data as chunk_t, gets cloned
*/
void (*set_data) (auth_payload_t *this, chunk_t data);
/**
* Get the AUTH data.
*
- * Returned data are a copy of the internal one.
- *
- * @return AUTH data as chunk_t
+ * @return AUTH data as chunk_t, internal data
*/
- chunk_t (*get_data_clone) (auth_payload_t *this);
+ chunk_t (*get_data) (auth_payload_t *this);
/**
- * Get the AUTH data.
+ * Get the value of a reserved bit.
*
- * Returned data are NOT copied
+ * @param nr number of the reserved bit, 0-6
+ * @return TRUE if bit was set, FALSE to clear
+ */
+ bool (*get_reserved_bit)(auth_payload_t *this, u_int nr);
+
+ /**
+ * Set one of the reserved bits.
*
- * @return AUTH data as chunk_t
+ * @param nr number of the reserved bit, 0-6
*/
- chunk_t (*get_data) (auth_payload_t *this);
+ void (*set_reserved_bit)(auth_payload_t *this, u_int nr);
/**
* Destroys an auth_payload_t object.