#define FKO_H 1
#include <time.h>
-#include "fko_limits.h"
-#include "fko_message.h"
#ifdef __cplusplus
extern "C" {
#define MAX_IPV4_STR_LEN 16
#define MIN_IPV4_STR_LEN 7
+#define MAX_PROTO_STR_LEN 4 /* tcp, udp, icmp for now */
+#define MAX_PORT_STR_LEN 5
+
/* Misc.
*/
#define FKO_ENCODE_TMP_BUF_SIZE 1024
#ifndef FKO_MESSAGE_H
#define FKO_MESSAGE_H 1
-#if PLATFORM_OPENBSD
- #include <sys/types.h>
- #include <netinet/in.h>
-#else
- #if HAVE_SYS_SOCKET_H
- #include <sys/socket.h>
- #endif
-#endif
-#include <arpa/inet.h>
-
-#define MAX_PROTO_STR_LEN 4 /* tcp, udp, icmp for now */
-#define MAX_PORT_STR_LEN 5
-
/* SPA message format validation functions.
*/
int validate_cmd_msg(const char *msg);
#endif
#include "fko.h"
+#include "fko_limits.h"
/* Get our program version from VERSION (defined in config.h).
*/
%files -n libfko-devel
%defattr(-,root,root,-)
%attr(0644,root,root) %{_includedir}/fko.h
-%attr(0644,root,root) %{_includedir}/fko_limits.h
-%attr(0644,root,root) %{_includedir}/fko_message.h
%attr(0644,root,root) %{_infodir}/libfko.info*
%files server
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/fwknop/access.conf
%changelog
+* Sat Dec 1 2012 <dstuart@dstuart.org> - 2.0.4-1
+- Removed uneeded include files (which had been added to address an issue that
+ has since been fixed).
+
* Thu Nov 15 2012 <mbr@cipherdyne.org>
- fwknop-2.0.4 release.
AM_CPPFLAGS = $(GPGME_CFLAGS) -I $(top_srcdir)/common
-include_HEADERS = fko.h fko_limits.h fko_message.h
+include_HEADERS = fko.h
#define FKO_H 1
#include <time.h>
-#include "fko_limits.h"
-#include "fko_message.h"
#ifdef __cplusplus
extern "C" {
#define MAX_IPV4_STR_LEN 16
#define MIN_IPV4_STR_LEN 7
+#define MAX_PROTO_STR_LEN 4 /* tcp, udp, icmp for now */
+#define MAX_PORT_STR_LEN 5
+
/* Misc.
*/
#define FKO_ENCODE_TMP_BUF_SIZE 1024
/* Should always have a valid allow IP regardless of message type
*/
if((res = have_allow_ip(msg)) != FKO_SUCCESS)
- return(res);
+ return(FKO_ERROR_INVALID_SPA_COMMAND_MSG);
/* Commands are fairly free-form so all we can really verify is
* there is something at all. Get past the IP and comma, and make
/* Should always have a valid allow IP regardless of message type
*/
if((res = have_allow_ip(msg)) != FKO_SUCCESS)
- return(res);
+ return(FKO_ERROR_INVALID_SPA_NAT_ACCESS_MSG);
/* Position ourselves beyond the allow IP and make sure we have
* a single port value
ndx++;
if((res = have_port(ndx)) != FKO_SUCCESS)
- return(res);
+ return(FKO_ERROR_INVALID_SPA_NAT_ACCESS_MSG);
if(msg[startlen-1] == ',')
return(FKO_ERROR_INVALID_SPA_NAT_ACCESS_MSG);
#ifndef FKO_MESSAGE_H
#define FKO_MESSAGE_H 1
-#define MAX_PROTO_STR_LEN 4 /* tcp, udp, icmp for now */
-#define MAX_PORT_STR_LEN 5
-
/* SPA message format validation functions.
*/
int validate_cmd_msg(const char *msg);
/*
*****************************************************************************
*
- * File: fko_message.h
+ * File: fko_user.h
*
* Author: Michael Rash
*
# 91-92 - Nat Access
#
-ok($f1->spa_nat_access('1.2.1.1,udp/211') == 0, 'set nat_access message');
-is($f1->spa_nat_access(), '1.2.1.1,udp/211', 'verify nat_access message');
+ok($f1->spa_nat_access('1.2.1.1,211') == 0, 'set nat_access message');
+is($f1->spa_nat_access(), '1.2.1.1,211', 'verify nat_access message');
# 93-94 - Server Auth
#