#include <ctype.h>#include <string.h>#include <stdlib.h>#include "conf_utils.h"#include "enums.h"Defines | |
| #define | IKEv2_DEFAULT_ENCR_KEY_LEN_AES_CBC 128 |
| #define | IKEv2_DEFAULT_ENCR_KEY_LEN_BLOWFISH 128 |
| #define | IKEv2_DEFAULT_ENCR_KEY_LEN_CAST 128 |
Functions | |
| const struct TransformConfigItem * | GetAvailableTransformsTypes (void) |
| Get pointer to the array containing list of the available transforms types. | |
| const struct IdTypeConfigItem * | GetAvailableIdTypes (void) |
| Get pointer to the array contaning list of the available ID types. | |
| int | TransformFromName (const char *name, uint8_t type, uint8_t *id, uint16_t *keylen) |
| Get transform id from string, useful in configuration. | |
| int | IdTypeFromName (const char *name) |
| Get type id from name string , useful in configuration. | |
| int | AuthtypeFromName (const char *authtype) |
| Get authe type id from string literal. | |
| uint16_t | extractKeyLen (const char *alg) |
Extract key length from algorithm name saved in folowing form: alg_name:n where:
| |
| const char * | GetTransformName (int type, int alg) |
| Get human readable transform type string. The outut of this function is in format "%s/%s", where first part is transform type, and second part is used algorithm. | |
Variables | |
| static const struct TransformConfigItem | availableTransformTypes [] |
| Available transform types. | |
| static const struct IdTypeConfigItem | availableIdTypes [] |
| Available ID types. | |
|
|
|
|
|
|
|
|
|
|
|
Get authe type id from string literal.
|
|
|
Extract key length from algorithm name saved in folowing form: alg_name:n where:
|
|
|
Get pointer to the array contaning list of the available ID types.
|
|
|
Get pointer to the array containing list of the available transforms types.
|
|
||||||||||||
|
Get human readable transform type string. The outut of this function is in format "%s/%s", where first part is transform type, and second part is used algorithm.
|
|
|
Get type id from name string , useful in configuration.
|
|
||||||||||||||||||||
|
Get transform id from string, useful in configuration.
|
|
|
Initial value: {
{ IKEv2_IDT_IPV4_ADDR , "IPV4_ADDR"},
{ IKEv2_IDT_FQDN , "FQDN"},
{ IKEv2_IDT_RFC822_ADDR , "RFC822_ADDR"},
{ IKEv2_IDT_IPV6_ADDR , "IPV6_ADDR"},
{ IKEv2_IDT_DER_ASN1_DN , "ASN1_DN"},
{ IKEv2_IDT_DER_ASN1_GN , "ASN1_GN"},
{ IKEv2_IDT_KEY_ID , "KEY_ID"},
{ 0, NULL }
}
|
|
|
Available transform types.
|