aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/encoding/payloads/auth_payload.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-03-16 15:25:06 +0000
committerMartin Willi <martin@strongswan.org>2006-03-16 15:25:06 +0000
commit16b9a73cc4bd4c4fafc8618fdd4c05ab72195df1 (patch)
treeb7d3214d59942dbd75ad8b9b8f86468f82f7a496 /Source/charon/encoding/payloads/auth_payload.h
parentb1953ccd05b5e6cf5a87c557208d5f8a1fcad231 (diff)
downloadstrongswan-16b9a73cc4bd4c4fafc8618fdd4c05ab72195df1.tar.bz2
strongswan-16b9a73cc4bd4c4fafc8618fdd4c05ab72195df1.tar.xz
- reworked configuration framework completly
- configuration is now split up in: connections, policies, credentials and daemon config - further alloc/free fixes needed!
Diffstat (limited to 'Source/charon/encoding/payloads/auth_payload.h')
-rw-r--r--Source/charon/encoding/payloads/auth_payload.h41
1 files changed, 4 insertions, 37 deletions
diff --git a/Source/charon/encoding/payloads/auth_payload.h b/Source/charon/encoding/payloads/auth_payload.h
index 1df867356..699ea2cdd 100644
--- a/Source/charon/encoding/payloads/auth_payload.h
+++ b/Source/charon/encoding/payloads/auth_payload.h
@@ -21,11 +21,12 @@
*/
-#ifndef _AUTH_PAYLOAD_H_
-#define _AUTH_PAYLOAD_H_
+#ifndef AUTH_PAYLOAD_H_
+#define AUTH_PAYLOAD_H_
#include <types.h>
#include <encoding/payloads/payload.h>
+#include <config/connection.h>
/**
* Length of a auth payload without the auth data in bytes.
@@ -35,40 +36,6 @@
#define AUTH_PAYLOAD_HEADER_LENGTH 8
-typedef enum auth_method_t auth_method_t;
-
-/**
- * AUTH Method of a AUTH payload.
- *
- * @ingroup payloads
- */
-enum auth_method_t {
- /**
- * Computed as specified in section 2.15 of RFC using
- * an RSA private key over a PKCS#1 padded hash.
- */
- RSA_DIGITAL_SIGNATURE = 1,
-
- /* Computed as specified in
- * section 2.15 of RFC using the shared key associated with the identity
- * in the ID payload and the negotiated prf function
- */
- SHARED_KEY_MESSAGE_INTEGRITY_CODE = 2,
-
- /* Computed as specified in section
- * 2.15 of RFC using a DSS private key over a SHA-1 hash.
- */
- DSS_DIGITAL_SIGNATURE = 3,
-};
-
-/**
- * string mappings for auth method.
- *
- * @ingroup payloads
- */
-extern mapping_t auth_method_m[];
-
-
typedef struct auth_payload_t auth_payload_t;
/**
@@ -152,4 +119,4 @@ struct auth_payload_t {
auth_payload_t *auth_payload_create();
-#endif //_AUTH_PAYLOAD_H_
+#endif /* AUTH_PAYLOAD_H_ */