*/
char *(*get_url)(cert_payload_t *this);
-
/**
* Destroys the cert_payload object.
*/
* Creates an empty certificate payload.
*
* @param type payload type (for IKEv1 or IKEv2)
- * @param cert certificate to embed
* @return cert_payload_t object
*/
cert_payload_t *cert_payload_create(payload_type_t type);
* Creates an IKEv2 certificate payload with hash and URL encoding.
*
* @param hash hash of the DER encoded certificate (get's cloned)
+ * @param url URL to the certificate
* @return cert_payload_t object
*/
cert_payload_t *cert_payload_create_from_hash_and_url(chunk_t hash, char *url);
/**
* Creates a IKEv1 certreq_payload_t for a given distinguished name.
*
- * @param dn distinguished name, does not get owned
+ * @param id distinguished name, does not get owned
* @return certreq payload
*/
certreq_payload_t *certreq_payload_create_dn(identification_t *id);
* @param type one of ID_INITIATOR, ID_RESPONDER, ID_V1 and NAT_OA_V1
* @return id_payload_t object
*/
-id_payload_t *id_payload_create(payload_type_t payload_type);
+id_payload_t *id_payload_create(payload_type_t type);
/**
* Creates an id_payload_t from an existing identification_t object.
*
* @param type payload type, NOTIFY or NOTIFY_V1
* @param protocol protocol id (IKE, AH or ESP)
- * @param type notify type (see notify_type_t)
+ * @param notify type of notify
* @return notify_payload_t object
*/
notify_payload_t *notify_payload_create_from_protocol_and_type(
* Create an authenticator to build and verify public key signatures.
*
* @param ike_sa associated IKE_SA
+ * @param initiator TRUE if we are IKE_SA initiator
* @param dh diffie hellman key exchange
* @param dh_value others public diffie hellman value
* @param sa_payload generated SA payload data, without payload header
/**
* Create a new informational task.
*
+ * @param ike_sa IKE_SA this task works for
* @param notify notify to send as initiator, NULL if responder
* @return task to handle by the task_manager
*/
/**
* Create a new main_mode task.
*
+ * @param ike_sa IKE_SA this task works for
* @param initiator TRUE if task initiated locally
* @return task to handle by the task_manager
*/
/**
* Create a new quick_mode task.
*
+ * @param ike_sa IKE_SA this task works for
* @param config child_cfg if task initiator, NULL if responder
* @param tsi source of triggering packet, or NULL
* @param tsr destination of triggering packet, or NULL