aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crypto.c7
-rw-r--r--init.c2
-rw-r--r--version.m42
3 files changed, 7 insertions, 4 deletions
diff --git a/crypto.c b/crypto.c
index d813f03..c9d6cdf 100644
--- a/crypto.c
+++ b/crypto.c
@@ -1158,8 +1158,11 @@ read_key_file (struct key2 *key2, const char *file, const unsigned int flags)
error_filename, count, onekeylen, keylen);
}
- /* zero file read buffer */
- buf_clear (&in);
+ /* zero file read buffer if not an inline file */
+#if ENABLE_INLINE_FILES
+ if (!(flags & RKF_INLINE))
+#endif
+ buf_clear (&in);
if (key2->n)
warn_if_group_others_accessible (error_filename);
diff --git a/init.c b/init.c
index 903fda4..959cec2 100644
--- a/init.c
+++ b/init.c
@@ -1680,7 +1680,7 @@ do_init_crypto_tls_c1 (struct context *c)
flags);
}
-#if ENABLE_INLINE_FILES
+#if 0 /* was: #if ENABLE_INLINE_FILES -- Note that enabling this code will break restarts */
if (options->priv_key_file_inline)
{
string_clear (c->options.priv_key_file_inline);
diff --git a/version.m4 b/version.m4
index b3984be..132e6cd 100644
--- a/version.m4
+++ b/version.m4
@@ -1,5 +1,5 @@
dnl define the OpenVPN version
-define(PRODUCT_VERSION,[2.1_rc15b])
+define(PRODUCT_VERSION,[2.1_rc15c])
dnl define the TAP version
define(PRODUCT_TAP_ID,[tap0901])
define(PRODUCT_TAP_WIN32_MIN_MAJOR,[9])