embedded IPsec source code documentation


ah_test.c File Reference


Detailed Description

Test functions for IP Authentication Header (AH).

Author:
Christian Scheurer <http://www.christianscheurer.ch>
OUTLINE:

This file contains test functions used to verify the AH code.

IMPLEMENTATION:

There are no implementation hints to be mentioned.

NOTES:

This document is part of embedded IPsec
Copyright (c) 2003 Niklaus Schild and Christian Scheurer, HTI Biel/Bienne
All rights reserved.


Definition in file ah_test.c.

#include <string.h>
#include "ipsec/util.h"
#include "ipsec/ah.h"
#include "ipsec/sa.h"
#include "ipsec/debug.h"
#include "testing/structural/structural_test.h"
#include "testing/structural/ah_test-sample_ah_packet.h"

Go to the source code of this file.

Functions

int ah_test_ipsec_ah_check (void)
int ah_test_ipsec_ah_encapsulate (void)
void ah_test (test_result *global_results)


Function Documentation

void ah_test test_result global_results  ) 
 

Main test function for the AH tests. It does nothing but calling the subtests one after the other.

Definition at line 181 of file ah_test.c.

int ah_test_ipsec_ah_check void   ) 
 

Test the ICV- and header-check of an AH-protected packet

Returns:
int number of tests failed in this function

Definition at line 65 of file ah_test.c.

int ah_test_ipsec_ah_encapsulate void   ) 
 

Tests encapsulating an IP packet into an AH header

Returns:
int number of tests failed in this function

Definition at line 101 of file ah_test.c.


Copyright 2003 by Christian Scheurer and Niklaus Schild