summaryrefslogtreecommitdiffstats
path: root/src/openvpn/socket.h
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-11-25 13:31:13 +0100
committerGert Doering <gert@greenie.muc.de>2013-11-26 15:34:59 +0100
commit34136dd8533510f68a012ba9e6bcd8cf5d1ce80e (patch)
treee70ad2c3e9238cc4021f6475ded4316d0eabbdf4 /src/openvpn/socket.h
parent48f1d41a80b1f2aa9e47b38f645dc880bd7090a4 (diff)
downloadopenvpn-34136dd8533510f68a012ba9e6bcd8cf5d1ce80e.tar.gz
openvpn-34136dd8533510f68a012ba9e6bcd8cf5d1ce80e.tar.xz
openvpn-34136dd8533510f68a012ba9e6bcd8cf5d1ce80e.zip
Change proto_remote() function to return a constant string
Instead of using the implicit protocol string that is returned by the proto/af to names function return a constant string. The strings have become part of the wire protocl and we do not want them to change if the printing of proto/af changes. Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <1385382680-5912-2-git-send-email-arne@rfc2549.org> URL: http://article.gmane.org/gmane.network.openvpn.devel/8055 Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/socket.h')
-rw-r--r--src/openvpn/socket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvpn/socket.h b/src/openvpn/socket.h
index 223c70d..a41a3d9 100644
--- a/src/openvpn/socket.h
+++ b/src/openvpn/socket.h
@@ -532,7 +532,7 @@ int ascii2proto (const char* proto_name);
sa_family_t ascii2af (const char* proto_name);
const char *proto2ascii (int proto, sa_family_t af, bool display_form);
const char *proto2ascii_all (struct gc_arena *gc);
-int proto_remote (int proto, bool remote);
+const char *proto_remote (int proto, bool remote);
const char *addr_family_name(int af);
/*