Removed VICI protocol versioning

This commit is contained in:
Andreas Steffen
2015-12-11 18:26:55 +01:00
parent b6dba6db74
commit 44d3b02b57
6 changed files with 7 additions and 102 deletions
-26
View File
@@ -2,9 +2,6 @@
* Copyright (C) 2014 Martin Willi
* Copyright (C) 2014 revosec AG
*
* Copyright (C) 2015 Andreas Steffen
* HSR Hochschule fuer Technik Rapperswil
* libvici.h is MIT-licensed to simplify reuse, but please note that libvici.c
* is not, as it depends on the GPLv2 licensed libstrongswan.
*
@@ -89,21 +86,6 @@
#include <stdio.h>
/**
* Vici versions
*/
typedef enum {
/** default version if vici key/value pair is missing in message */
VICI_1_0,
/** current version, vici key/value pair is explicitly sent in message */
VICI_2_0,
} vici_version_t;
/**
* Current vici version
*/
#define VICI_VERSION VICI_2_0
/**
* Opaque vici connection contex.
*/
@@ -237,14 +219,6 @@ void vici_add_key_value(vici_req_t *req, char *key, void *buf, int len);
*/
void vici_add_key_valuef(vici_req_t *req, char *key, char *fmt, ...);
/**
* Add a vici version key/value pair (not not needed for VICI 1.0)
*
* @param req request message to add vici version key/value pair to
* @param version vici version
*/
void vici_add_version(vici_req_t *req, vici_version_t version);
/**
* Begin a list in a request message.
*