aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-10-22 14:41:13 +0200
committerMartin Willi <martin@strongswan.org>2009-11-12 10:34:00 +0100
commit13f418b4423c6f59eb2e019ebaf2ca4a6d6e6301 (patch)
treee0434049bfa72bf62531039b7b3f61bb54ae94f2 /src
parentbcf8a0ff949981c68f97392a28077352d26f3d91 (diff)
downloadstrongswan-13f418b4423c6f59eb2e019ebaf2ca4a6d6e6301.tar.bz2
strongswan-13f418b4423c6f59eb2e019ebaf2ca4a6d6e6301.tar.xz
Added a doxygen group for libsimaka, some cleanups
Diffstat (limited to 'src')
-rw-r--r--src/charon/plugins/eap_sim/eap_sim_peer.h2
-rw-r--r--src/charon/plugins/eap_sim/eap_sim_server.h2
-rw-r--r--src/libsimaka/simaka_crypto.h2
-rw-r--r--src/libsimaka/simaka_message.h40
4 files changed, 26 insertions, 20 deletions
diff --git a/src/charon/plugins/eap_sim/eap_sim_peer.h b/src/charon/plugins/eap_sim/eap_sim_peer.h
index 85befa6a0..89f81301e 100644
--- a/src/charon/plugins/eap_sim/eap_sim_peer.h
+++ b/src/charon/plugins/eap_sim/eap_sim_peer.h
@@ -54,4 +54,4 @@ struct eap_sim_peer_t {
eap_sim_peer_t *eap_sim_peer_create(identification_t *server,
identification_t *peer);
-#endif /* EAP_SIM_PEER_H_ @}*/
+#endif /** EAP_SIM_PEER_H_ @}*/
diff --git a/src/charon/plugins/eap_sim/eap_sim_server.h b/src/charon/plugins/eap_sim/eap_sim_server.h
index d9dafb2d9..978e1e1e9 100644
--- a/src/charon/plugins/eap_sim/eap_sim_server.h
+++ b/src/charon/plugins/eap_sim/eap_sim_server.h
@@ -54,4 +54,4 @@ struct eap_sim_server_t {
eap_sim_server_t *eap_sim_server_create(identification_t *server,
identification_t *peer);
-#endif /* EAP_SIM_SERVER_H_ @}*/
+#endif /** EAP_SIM_SERVER_H_ @}*/
diff --git a/src/libsimaka/simaka_crypto.h b/src/libsimaka/simaka_crypto.h
index 40235643c..4c12f97d3 100644
--- a/src/libsimaka/simaka_crypto.h
+++ b/src/libsimaka/simaka_crypto.h
@@ -79,4 +79,4 @@ struct simaka_crypto_t {
*/
simaka_crypto_t *simaka_crypto_create();
-#endif /* SIMAKA_CRYPTO_ @}*/
+#endif /** SIMAKA_CRYPTO_H_ @}*/
diff --git a/src/libsimaka/simaka_message.h b/src/libsimaka/simaka_message.h
index 20edd2664..0fd21adc4 100644
--- a/src/libsimaka/simaka_message.h
+++ b/src/libsimaka/simaka_message.h
@@ -14,6 +14,11 @@
*/
/**
+ * @defgroup libsimaka libsimaka
+ *
+ * @addtogroup libsimaka
+ * Library providing functions shared between EAP-SIM and EAP-AKA plugins.
+ *
* @defgroup simaka_message simaka_message
* @{ @ingroup libsimaka
*/
@@ -94,25 +99,25 @@ extern enum_name_t *simaka_attribute_names;
* Notification codes used within AT_NOTIFICATION attribute.
*/
enum simaka_notification_t {
- /* SIM General failure after authentication. (Implies failure) */
+ /** SIM General failure after authentication. (Implies failure) */
SIM_GENERAL_FAILURE_AA = 0,
- /* AKA General failure after authentication. (Implies failure) */
+ /** AKA General failure after authentication. (Implies failure) */
AKA_GENERAL_FAILURE_AA = 0,
- /* SIM General failure. (Implies failure, used before authentication) */
+ /** SIM General failure. (Implies failure, used before authentication) */
SIM_GENERAL_FAILURE = 16384,
- /* AKA General failure. (Implies failure, used before authentication) */
+ /** AKA General failure. (Implies failure, used before authentication) */
AKA_GENERAL_FAILURE = 16384,
- /* SIM User has been temporarily denied access to the requested service. */
+ /** SIM User has been temporarily denied access to the requested service. */
SIM_TEMP_DENIED = 1026,
- /* AKA User has been temporarily denied access to the requested service. */
+ /** AKA User has been temporarily denied access to the requested service. */
AKA_TEMP_DENIED = 1026,
- /* SIM User has not subscribed to the requested service. */
+ /** SIM User has not subscribed to the requested service. */
SIM_NOT_SUBSCRIBED = 1031,
- /* AKA User has not subscribed to the requested service. */
+ /** AKA User has not subscribed to the requested service. */
AKA_NOT_SUBSCRIBED = 1031,
- /* SIM Success. User has been successfully authenticated. */
+ /** SIM Success. User has been successfully authenticated. */
SIM_SUCCESS = 32768,
- /* AKA Success. User has been successfully authenticated. */
+ /** AKA Success. User has been successfully authenticated. */
AKA_SUCCESS = 32768,
};
@@ -125,15 +130,15 @@ extern enum_name_t *simaka_notification_names;
* Error codes sent in AT_CLIENT_ERROR_CODE attribute
*/
enum simaka_client_error_t {
- /* AKA unable to process packet */
+ /** AKA unable to process packet */
AKA_UNABLE_TO_PROCESS = 0,
- /* SIM unable to process packet */
+ /** SIM unable to process packet */
SIM_UNABLE_TO_PROCESS = 0,
- /* SIM unsupported version */
+ /** SIM unsupported version */
SIM_UNSUPPORTED_VERSION = 1,
- /* SIM insufficient number of challenges */
+ /** SIM insufficient number of challenges */
SIM_INSUFFICIENT_CHALLENGES = 2,
- /* SIM RANDs are not fresh */
+ /** SIM RANDs are not fresh */
SIM_RANDS_NOT_FRESH = 3,
};
@@ -247,7 +252,8 @@ struct simaka_message_t {
*
* @param request TRUE for a request message, FALSE for a response
* @param identifier EAP message identifier
- * @param type EAP subtype of the message
+ * @param type EAP type: EAP-SIM or EAP-AKA
+ * @param subtype subtype of the EAP message
* @return empty message of requested kind, NULL on error
*/
simaka_message_t *simaka_message_create(bool request, u_int8_t identifier,
@@ -261,4 +267,4 @@ simaka_message_t *simaka_message_create(bool request, u_int8_t identifier,
*/
simaka_message_t *simaka_message_create_from_payload(eap_payload_t *payload);
-#endif /* SIMAKA_MESSAGE_H_ @}*/
+#endif /** SIMAKA_MESSAGE_H_ @}*/