#include #include #include #include #include #include #include "setuid.h" #include "libsmooth.h" #define noovpndebug // global vars struct keyvalue *kv = NULL; FILE *ifacefile = NULL; char redif[STRING_SIZE]; char blueif[STRING_SIZE]; char orangeif[STRING_SIZE]; char enablered[STRING_SIZE] = "off"; char enableblue[STRING_SIZE] = "off"; char enableorange[STRING_SIZE] = "off"; // consts char OVPNRED[STRING_SIZE] = "OVPN"; char OVPNBLUE[STRING_SIZE] = "OVPN_BLUE_"; char OVPNORANGE[STRING_SIZE] = "OVPN_ORANGE_"; char WRAPPERVERSION[STRING_SIZE] = "2.0.1.6"; void exithandler(void) { if(kv) freekeyvalues(kv); if (ifacefile) fclose(ifacefile); } void usage(void) { #ifdef ovpndebug printf("Wrapper for OpenVPN v%s-debug\n", WRAPPERVERSION); #else printf("Wrapper for OpenVPN v%s\n", WRAPPERVERSION); #endif printf("openvpnctrl