blob: da51b225d50ac94b267990a1acf6225a8852bb20 [file] [log] [blame]
--- openvpn-2.3.2/src/openvpn/ssl.c.orig 2013-09-30 09:28:06.906781451 -0700
+++ openvpn-2.3.2/src/openvpn/ssl.c 2013-09-30 09:30:00.236829170 -0700
@@ -1780,11 +1780,14 @@
struct env_set *es = session->opt->es;
struct env_item *e;
struct buffer out = alloc_buf_gc (512*3, &gc);
+ const char *iv_plat, *iv_plat_rel;
/* push version */
buf_printf (&out, "IV_VER=%s\n", PACKAGE_VERSION);
/* push platform */
+ iv_plat = getenv("IV_PLAT");
+ if (iv_plat == NULL) {
#if defined(TARGET_LINUX)
buf_printf (&out, "IV_PLAT=linux\n");
#elif defined(TARGET_SOLARIS)
@@ -1800,6 +1803,12 @@
#elif defined(WIN32)
buf_printf (&out, "IV_PLAT=win\n");
#endif
+ } else
+ buf_printf (&out, "IV_PLAT=%s\n", iv_plat);
+
+ iv_plat_rel = getenv("IV_PLAT_REL");
+ if (iv_plat_rel != NULL)
+ buf_printf (&out, "IV_PLAT_REL=%s\n", iv_plat_rel);
/* push LZO status */
#ifdef ENABLE_LZO_STUB