]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
Fix various API doc issues and typos
authorTobias Brunner <tobias@strongswan.org>
Thu, 18 Jul 2013 15:27:11 +0000 (17:27 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 18 Jul 2013 16:30:36 +0000 (18:30 +0200)
Partially based on an old patch by Adrian-Ken Rueegsegger.

26 files changed:
man/ipsec.conf.5.in
src/charon-cmd/charon-cmd.c
src/charon-cmd/cmd/cmd_connection.h
src/frontends/osx/README.md
src/frontends/osx/charon-xpc/xpc_channels.h
src/libcharon/bus/listeners/listener.h
src/libcharon/config/child_cfg.h
src/libcharon/config/peer_cfg.h
src/libcharon/encoding/message.h
src/libcharon/sa/child_sa.h
src/libcharon/sa/ike_sa.h
src/libcharon/sa/ike_sa_id.h
src/libcharon/sa/ikev2/tasks/ike_cert_pre.h
src/libcharon/sa/keymat.h
src/libcharon/sa/task.h
src/libhydra/kernel/kernel_interface.h
src/libhydra/kernel/kernel_net.h
src/libimcv/imv/imv_session.h
src/libimcv/ita/ita_attr_device_id.h
src/libpttls/pt_tls.h
src/libstrongswan/collections/array.h
src/libstrongswan/credentials/keys/public_key.h
src/libstrongswan/crypto/aead.h
src/libstrongswan/networking/host.h
src/libstrongswan/processing/watcher.h
src/libstrongswan/utils/identification.h

index 2a933350d5ea2004586167a54630b3008254e780..4c64e86ca9851e22e07bda83096d6d0e16892c3e 100644 (file)
@@ -826,7 +826,7 @@ as omitting
 completely. Using
 .B %dynamic
 can be used to define multiple dynamic selectors, each having a potentially
-different protocol/port definiton.
+different protocol/port definition.
 
 .TP
 .BR leftupdown " = <path>"
index 494e4f84eb2849d6ea679229c274659cf3ba961b..5f4787b58735eab204fbb2200b523ec2d99098ab 100644 (file)
@@ -150,7 +150,7 @@ static int run()
                                return 0;
                        }
                        case SIGUSR1:
-                       {       /* an error occured */
+                       {       /* an error occurred */
                                charon->bus->alert(charon->bus, ALERT_SHUTDOWN_SIGNAL, sig);
                                return 1;
                        }
index 0f167bfdc9a85489ef7c395534bd13c2266010dc..22180261734ad6d0ace7f8339cb3af1c5f257c25 100644 (file)
  */
 
 /**
+ * @defgroup charon-cmd charon-cmd
+ *
+ * @defgroup cmd cmd
+ * @ingroup charon-cmd
+ *
  * @defgroup cmd_connection cmd_connection
  * @{ @ingroup cmd
  */
index bd24cce1bcf2776afb650b95b9d3834a06a80f38..66799b8447d7c3de26a739cbbf23c1dc7d0693d7 100644 (file)
@@ -69,7 +69,7 @@ defined:
        * _id_: client identity to use
        * _channel_: XPC endpoint for this connection
 
-The start_connection() RPC returns just after the initation of the call and
+The start_connection() RPC returns just after the initiation of the call and
 does not wait for the connection to establish. Nonetheless does it have a
 return value to indicate if connection initiation could be triggered.
 
index 125a81f1de8623ed2ef9308651db7a327d340672..99e4d77e6dc82966732154e2d40aa4c56dd06fe8 100644 (file)
@@ -14,6 +14,8 @@
  */
 
 /**
+ * @defgroup xpc charon-xpc
+ *
  * @defgroup xpc_channels xpc_channels
  * @{ @ingroup xpc
  */
index ef4daced2f9e3f96bca7be5054e205322f8bc882..57445df01851f72484662601ec00a1fe762cc46d 100644 (file)
@@ -31,7 +31,7 @@ typedef struct listener_t listener_t;
 struct listener_t {
 
        /**
-        * Hook called if a critical alert is risen.
+        * Hook called if a critical alert is raised.
         *
         * @param ike_sa        IKE_SA associated to the alert, if any
         * @param alert         kind of alert
index 6e8829a474705686d7cc7a2679734ea06951b10d..20d1fa811638584c6baaec98206119041f703d0a 100644 (file)
@@ -213,14 +213,14 @@ struct child_cfg_t {
        u_int32_t (*get_inactivity)(child_cfg_t *this);
 
        /**
-        * Specific reqid to use for CHILD_SA
+        * Specific reqid to use for CHILD_SA.
         *
         * @return                              reqid
         */
        u_int32_t (*get_reqid)(child_cfg_t *this);
 
        /**
-        * Optional mark for CHILD_SA
+        * Optional mark for CHILD_SA.
         *
         * @param inbound               TRUE for inbound, FALSE for outbound
         * @return                              mark
@@ -235,7 +235,7 @@ struct child_cfg_t {
        u_int32_t (*get_tfc)(child_cfg_t *this);
 
        /**
-        * Sets two options needed for Mobile IPv6 interoperability
+        * Sets two options needed for Mobile IPv6 interoperability.
         *
         * @param proxy_mode    use IPsec transport proxy mode (default FALSE)
         * @param install_policy install IPsec kernel policies (default TRUE)
@@ -244,7 +244,7 @@ struct child_cfg_t {
                                                                                                 bool install_policy);
 
        /**
-        * Check whether IPsec transport SA should be set up in proxy mode
+        * Check whether IPsec transport SA should be set up in proxy mode.
         *
         * @return                              TRUE, if proxy mode should be used
         *                                              FALSE, otherwise
@@ -252,7 +252,7 @@ struct child_cfg_t {
        bool (*use_proxy_mode)(child_cfg_t *this);
 
        /**
-        * Check whether IPsec policies should be installed in the kernel
+        * Check whether IPsec policies should be installed in the kernel.
         *
         * @return                              TRUE, if IPsec kernel policies should be installed
         *                                              FALSE, otherwise
index 80913beba19325151f236a9f0f2fb76fdec904b7..e62e03ec5cff5480b077d6c6954954be13c7eee8 100644 (file)
@@ -176,7 +176,7 @@ struct peer_cfg_t {
        /**
         * Add an authentication config to the peer configuration.
         *
-        * @param config                config to add
+        * @param cfg                   config to add
         * @param local                 TRUE for local rules, FALSE for remote constraints
         */
        void (*add_auth_cfg)(peer_cfg_t *this, auth_cfg_t *cfg, bool local);
@@ -190,7 +190,7 @@ struct peer_cfg_t {
        enumerator_t* (*create_auth_cfg_enumerator)(peer_cfg_t *this, bool local);
 
        /**
-        * Should be sent a certificate for this connection?
+        * Should a certificate be sent for this connection?
         *
         * @return                      certificate sending policy
         */
index 2c11e4581bc4e72ef5f20cf950b39b248cc51414..7631a7c3a45a60d6694fb510db9f3edf851972bf 100644 (file)
@@ -49,7 +49,7 @@ struct message_t {
         *
         * @param major_version major version to set
         */
-       void (*set_major_version) (message_t *this,u_int8_t major_version);
+       void (*set_major_version) (message_t *this, u_int8_t major_version);
 
        /**
         * Gets the IKE major version of the message.
@@ -63,7 +63,7 @@ struct message_t {
         *
         * @param minor_version minor version to set
         */
-       void (*set_minor_version) (message_t *this,u_int8_t minor_version);
+       void (*set_minor_version) (message_t *this, u_int8_t minor_version);
 
        /**
         * Gets the IKE minor version of the message.
@@ -77,7 +77,7 @@ struct message_t {
         *
         * @param message_id    message_id to set
         */
-       void (*set_message_id) (message_t *this,u_int32_t message_id);
+       void (*set_message_id) (message_t *this, u_int32_t message_id);
 
        /**
         * Gets the Message ID of the message.
@@ -107,7 +107,7 @@ struct message_t {
         *
         * @param ike_sa_id             ike_sa_id to set
         */
-       void (*set_ike_sa_id) (message_t *this, ike_sa_id_t * ike_sa_id);
+       void (*set_ike_sa_id) (message_t *this, ike_sa_id_t *ike_sa_id);
 
        /**
         * Gets the IKE_SA ID of the message.
@@ -123,7 +123,7 @@ struct message_t {
         *
         * @param exchange_type exchange_type to set
         */
-       void (*set_exchange_type) (message_t *this,exchange_type_t exchange_type);
+       void (*set_exchange_type) (message_t *this, exchange_type_t exchange_type);
 
        /**
         * Gets the exchange type of the message.
index 44c5293915307b776ec5c290e46c36837bd2cb48..ed52d60b136d04cdc77eb206b5e407f27703cdf0 100644 (file)
@@ -231,7 +231,7 @@ struct child_sa_t {
        /**
         * Override the DPD action specified by the CHILD_SA config.
         *
-        * @param                       close action to enforce
+        * @param                       dpd action to enforce
         */
        void (*set_dpd_action)(child_sa_t *this, action_t action);
 
@@ -353,7 +353,7 @@ struct child_sa_t {
         * @param me            the new local host
         * @param other         the new remote host
         * @param vips          list of local virtual IPs
-        * @param                       TRUE to use UDP encapsulation for NAT traversal
+        * @param encap         TRUE to use UDP encapsulation for NAT traversal
         * @return                      SUCCESS or FAILED
         */
        status_t (*update)(child_sa_t *this, host_t *me, host_t *other,
index 625859a3f27ce10341fcdb63dbbae4c2ce59756e..00c16c05e5dc268538347c3c540e3174cff2f000 100644 (file)
@@ -200,11 +200,11 @@ enum ike_condition_t {
 enum statistic_t {
        /** Timestamp of SA establishement */
        STAT_ESTABLISHED = 0,
-       /** Timestamp of scheudled rekeying */
+       /** Timestamp of scheduled rekeying */
        STAT_REKEY,
-       /** Timestamp of scheudled reauthentication */
+       /** Timestamp of scheduled reauthentication */
        STAT_REAUTH,
-       /** Timestamp of scheudled delete */
+       /** Timestamp of scheduled delete */
        STAT_DELETE,
        /** Timestamp of last inbound IKE packet */
        STAT_INBOUND,
@@ -812,10 +812,8 @@ struct ike_sa_t {
        /**
         * Sends a keep alive packet.
         *
-        * To refresh NAT tables in a NAT router
-        * between the peers, periodic empty
-        * UDP packets are sent if no other traffic
-        * was sent.
+        * To refresh NAT tables in a NAT router between the peers, periodic empty
+        * UDP packets are sent if no other traffic was sent.
         */
        void (*send_keepalive) (ike_sa_t *this);
 
index 227683d1c114a171748984082c5f7131feda47a2..5eb754e9586f3e5afe87ddc71654b2a451406455 100644 (file)
@@ -86,7 +86,7 @@ struct ike_sa_id_t {
        bool (*equals) (ike_sa_id_t *this, ike_sa_id_t *other);
 
        /**
-        * Replace all values of a given ike_sa_id_t object with values.
+        * Replace all values of a given ike_sa_id_t object with values
         * from another ike_sa_id_t object.
         *
         * After calling this function, both objects are equal.
index ac1a85c2943c289bfd744e2aa2895bbc4688648f..c1f8635ce7be655197ca0c60936caf776719afe8 100644 (file)
@@ -28,7 +28,7 @@ typedef struct ike_cert_pre_t ike_cert_pre_t;
 #include <sa/task.h>
 
 /**
- * Task of type ike_cert_post, certificate processing before authentication.
+ * Task of type ike_cert_pre, certificate processing before authentication.
  */
 struct ike_cert_pre_t {
 
index 02db5ca58048c1980285b09bcbf2ef0ece15090c..bc40b3d92a8bbac4e95dac97b6c7b1022923fca6 100644 (file)
@@ -79,7 +79,7 @@ struct keymat_t {
         */
        nonce_gen_t* (*create_nonce_gen)(keymat_t *this);
 
-       /*
+       /**
         * Get a AEAD transform to en-/decrypt and sign/verify IKE messages.
         *
         * @param in            TRUE for inbound (decrypt), FALSE for outbound (encrypt)
index c37221a775e89670aeea4a473a3b1f28c4f61ad7..f2c4299ccd5b92cdaca0126db8f05d833257c058 100644 (file)
@@ -67,7 +67,7 @@ enum task_type_t {
        TASK_CHILD_CREATE,
        /** delete an established CHILD_SA */
        TASK_CHILD_DELETE,
-       /** rekey an CHILD_SA */
+       /** rekey a CHILD_SA */
        TASK_CHILD_REKEY,
        /** IKEv1 main mode */
        TASK_MAIN_MODE,
index f735781675fbe4d467d34bc4e95cbd573b70e16a..1d96f1c3546da746bef10497540a055a3846414a 100644 (file)
@@ -373,7 +373,7 @@ struct kernel_interface_t {
         *
         * The kernel interface uses refcounting, see add_ip().
         *
-        * @param virtual_ip    virtual ip address to assign
+        * @param virtual_ip    virtual ip address to remove
         * @param prefix                prefix length of the IP to uninstall, -1 for auto
         * @param wait                  TRUE to wait untily IP is gone
         * @return                              SUCCESS if operation completed
@@ -387,7 +387,7 @@ struct kernel_interface_t {
         * @param dst_net               destination net
         * @param prefixlen             destination net prefix length
         * @param gateway               gateway for this route
-        * @param src_ip                sourc ip of the route
+        * @param src_ip                source ip of the route
         * @param if_name               name of the interface the route is bound to
         * @return                              SUCCESS if operation completed
         *                                              ALREADY_DONE if the route already exists
@@ -402,7 +402,7 @@ struct kernel_interface_t {
         * @param dst_net               destination net
         * @param prefixlen             destination net prefix length
         * @param gateway               gateway for this route
-        * @param src_ip                sourc ip of the route
+        * @param src_ip                source ip of the route
         * @param if_name               name of the interface the route is bound to
         * @return                              SUCCESS if operation completed
         */
@@ -598,7 +598,7 @@ struct kernel_interface_t {
                                                         char **kernel_name);
 
        /**
-        * Destroys a kernel_interface_manager_t object.
+        * Destroys a kernel_interface_t object.
         */
        void (*destroy) (kernel_interface_t *this);
 };
index 165036231c4753a2ebea9693a48f8eb99194dab2..8c448ddbc8ac4e62e5990c8e1859c801f4665988 100644 (file)
@@ -134,7 +134,7 @@ struct kernel_net_t {
         *
         * The kernel interface uses refcounting, see add_ip().
         *
-        * @param virtual_ip    virtual ip address to assign
+        * @param virtual_ip    virtual ip address to remove
         * @param prefix                prefix length of the IP to uninstall, -1 for auto
         * @param wait                  TRUE to wait until IP is gone
         * @return                              SUCCESS if operation completed
@@ -148,7 +148,7 @@ struct kernel_net_t {
         * @param dst_net               destination net
         * @param prefixlen             destination net prefix length
         * @param gateway               gateway for this route
-        * @param src_ip                sourc ip of the route
+        * @param src_ip                source ip of the route
         * @param if_name               name of the interface the route is bound to
         * @return                              SUCCESS if operation completed
         *                                              ALREADY_DONE if the route already exists
@@ -163,7 +163,7 @@ struct kernel_net_t {
         * @param dst_net               destination net
         * @param prefixlen             destination net prefix length
         * @param gateway               gateway for this route
-        * @param src_ip                sourc ip of the route
+        * @param src_ip                source ip of the route
         * @param if_name               name of the interface the route is bound to
         * @return                              SUCCESS if operation completed
         */
index d38b2aca50fa2251750a220a52f5ec177d6a0ac7..6b94523b8b8a1c4a061c6c7623dc4101e1b1ce54 100644 (file)
@@ -31,7 +31,7 @@
 typedef struct imv_session_t imv_session_t;
 
 /**
- * IMV session interface 
+ * IMV session interface
  */
 struct imv_session_t {
 
@@ -106,7 +106,7 @@ struct imv_session_t {
  * Create an imv_session_t instance
  *
  * @param session_id           Unique Session ID
- * @param conn_id                      Associated Connection ID
+ * @param id                           Associated Connection ID
  */
 imv_session_t* imv_session_create(int session_id, TNC_ConnectionID id);
 
index 558a8e05581af84118a06ec279ac6a2a774a2805..ffacdba1ea512ee465580078025fc65a39fe711e 100644 (file)
@@ -41,7 +41,7 @@ struct ita_attr_device_id_t {
 /**
  * Creates an ita_attr_device_id_t object
  *
- * @param size                         ITA Device ID attribute value
+ * @param value                                ITA Device ID attribute value
  */
 pa_tnc_attr_t* ita_attr_device_id_create(chunk_t value);
 
index cb8bde05ceb1d3edb721dc619a31f7fb6ae64a98..92a040f3f6e4475e1c3ceaf0614609262ea81065 100644 (file)
@@ -14,7 +14,7 @@
  */
 
 /**
- * @defgroup pt_tls pt_tls
+ * @defgroup pt_tls libpttls
  *
  * @addtogroup pt_tls
  * @{
index 3e6180b54106a36f1458b687447a1f64fee684e0..0dc7b2250c115b57c89ac97a43468e6cdf9b0c0e 100644 (file)
@@ -28,7 +28,7 @@
  *
  * An array is a primitive object with associated functions to avoid the
  * overhead of an object with methods. It is efficient in memory usage, but
- * less effecient than a linked list in manipulating elements.
+ * less efficient than a linked list in manipulating elements.
  */
 typedef struct array_t array_t;
 
@@ -140,11 +140,12 @@ void array_insert_create(array_t **array, int idx, void *ptr);
 void array_insert_enumerator(array_t *array, int idx, enumerator_t *enumerator);
 
 /**
- * Remove an element from the array end.
+ * Remove an element from the array.
  *
  * If data is given, the element is copied to that position.
  *
  * @param array                        array to remove element from, or NULL
+ * @param idx                  index of the item to remove
  * @param data                 data to copy element to, or NULL
  * @return                             TRUE if idx existed and item removed
  */
index fdbe17f2c18e9fb9deae66d417a7bd7dddeb49d2..2afcf832503b976ecf5a18ab1e72fcb5ac6865ae 100644 (file)
@@ -192,7 +192,7 @@ struct public_key_t {
        /**
         * Get the key in an encoded form as a chunk.
         *
-        * @param type          type of the encoding, one of PRIVKEY_*
+        * @param type          type of the encoding, one of PUBKEY_*
         * @param encoding      encoding of the key, allocated
         * @return                      TRUE if encoding supported
         */
index ec526a3d97241acca47c7de06737acd2f857539b..f3959f8f36cf2ac5af66926c2e79e5226d3bca37 100644 (file)
@@ -58,7 +58,7 @@ struct aead_t {
         * is returned in the encrypted chunk, the last get_icv_size() bytes
         * contain the verified ICV.
         *
-        * @param encrypted             data to encrypt and verify
+        * @param encrypted             data to decrypt and verify
         * @param assoc                 associated data to verify
         * @param iv                    initialization vector
         * @param plain                 allocated result, if successful
@@ -105,7 +105,7 @@ struct aead_t {
                                        chunk_t key) __attribute__((warn_unused_result));
 
        /**
-        * Destroy a aead_t.
+        * Destroy an aead_t.
         */
        void (*destroy)(aead_t *this);
 };
index ae25076ed4841ad76388a21c5d21749f57e923a7..4fc6cf35cd8c029e24393fbc2671a21c830ba6ad 100644 (file)
@@ -92,7 +92,7 @@ struct host_t {
         *
         * Returned chunk points to internal data.
         *
-        * @return              address string,
+        * @return              address blob
         */
        chunk_t (*get_address) (host_t *this);
 
@@ -106,7 +106,7 @@ struct host_t {
        /**
         * Set the port of this host
         *
-        * @param port  port numer
+        * @param port  port number
         */
        void (*set_port) (host_t *this, u_int16_t port);
 
@@ -194,6 +194,7 @@ host_t *host_create_from_subnet(char *string, int *bits);
 /**
  * Create a netmask host having the first netbits bits set.
  *
+ * @param family               family of the netmask host
  * @param netbits              number of leading bits set in the host
  * @return                             netmask host
  */
index 02d9188f097fe203872951f75748e2898b7f3d43..6e158cec2c9a264c29dba3ad0ef635df6a77c88e 100644 (file)
@@ -41,7 +41,7 @@ typedef enum watcher_event_t watcher_event_t;
  * and handle EAGAIN/EWOULDBLOCK gracefully.
  *
  * @param data         user data passed during registration
- * @param fd           file descriptor the event occured on
+ * @param fd           file descriptor the event occurred on
  * @param event                type of event
  * @return                     TRUE to keep watching event, FALSE to unregister fd for event
  */
index 00d7407657d087f5fd46ea5a53747742efcce584..e62446879847d2f972454d6d65e5d4ae4dc73fc1 100644 (file)
@@ -241,7 +241,6 @@ struct identification_t {
         * no match at all, 1 means a bad match, and 2 a slightly better match.
         *
         * @param other         the ID containing one or more wildcards
-        * @param wildcards     returns the number of wildcards, may be NULL
         * @return                      match value as described above
         */
        id_match_t (*matches) (identification_t *this, identification_t *other);