Annotation of embedaddon/strongswan/src/libcharon/sa/ikev2/tasks/ike_mid_sync.h, revision 1.1.1.1

1.1       misho       1: /*
                      2:  * Copyright (C) 2016 Tobias Brunner
                      3:  * HSR Hochschule fuer Technik Rapperswil
                      4:  *
                      5:  * This program is free software; you can redistribute it and/or modify it
                      6:  * under the terms of the GNU General Public License as published by the
                      7:  * Free Software Foundation; either version 2 of the License, or (at your
                      8:  * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
                      9:  *
                     10:  * This program is distributed in the hope that it will be useful, but
                     11:  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
                     12:  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
                     13:  * for more details.
                     14:  */
                     15: /*
                     16:  * Copyright (C) 2016 Stephen J. Bevan
                     17:  *
                     18:  * Permission is hereby granted, free of charge, to any person obtaining a copy
                     19:  * of this software and associated documentation files (the "Software"), to deal
                     20:  * in the Software without restriction, including without limitation the rights
                     21:  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
                     22:  * copies of the Software, and to permit persons to whom the Software is
                     23:  * furnished to do so, subject to the following conditions:
                     24:  *
                     25:  * The above copyright notice and this permission notice shall be included in
                     26:  * all copies or substantial portions of the Software.
                     27:  *
                     28:  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
                     29:  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                     30:  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
                     31:  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
                     32:  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
                     33:  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
                     34:  * THE SOFTWARE.
                     35:  */
                     36: 
                     37: /**
                     38:  * @defgroup ike_mid_sync ike_mid_sync
                     39:  * @{ @ingroup tasks_v2
                     40:  */
                     41: 
                     42: #ifndef IKE_MID_SYNC_H_
                     43: #define IKE_MID_SYNC_H_
                     44: 
                     45: typedef struct ike_mid_sync_t ike_mid_sync_t;
                     46: 
                     47: #include <library.h>
                     48: #include <sa/ike_sa.h>
                     49: #include <sa/task.h>
                     50: 
                     51: /**
                     52:  * Task of type TASK_IKE_MID_SYNC, implements RFC 6311 responder.
                     53:  *
                     54:  * This task handles an IKEV2_MESSAGE_ID_SYNC notify sent by a peer
                     55:  * and if acceptable updates the SA MIDs and replies with the updated
                     56:  * MID values.
                     57:  */
                     58: struct ike_mid_sync_t {
                     59: 
                     60:        /**
                     61:         * Implements the task_t interface
                     62:         */
                     63:        task_t task;
                     64: };
                     65: 
                     66: /**
                     67:  * Create a new TASK_IKE_MID_SYNC task.
                     68:  *
                     69:  * @param ike_sa       IKE_SA this task works for
                     70:  * @return                     task to handle by the task_manager
                     71:  */
                     72: ike_mid_sync_t *ike_mid_sync_create(ike_sa_t *ike_sa);
                     73: 
                     74: #endif /** IKE_MID_SYNC_H_ @}*/

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>