Allow the syntax of the .include directive to optionally have '='
[openssl.git] / crypto / conf / conf_def.c
index 7f0d70ea695ecfffafcd81812e1f0e96ab06960c..450eeb9f4842761d2fefa05460ae32cbe34fc0f0 100644 (file)
@@ -348,10 +348,15 @@ static int def_load_bio(CONF *conf, BIO *in, long *line)
                 psection = section;
             }
             p = eat_ws(conf, end);
-            if (strncmp(pname, ".include", 8) == 0 && p != pname + 8) {
+            if (strncmp(pname, ".include", 8) == 0
+                && (p != pname + 8 || *p == '=')) {
                 char *include = NULL;
                 BIO *next;
 
+                if (*p == '=') {
+                    p++;
+                    p = eat_ws(conf, p);
+                }
                 trim_ws(conf, p);
                 if (!str_copy(conf, psection, &include, p))
                     goto err;