\r
/* Allow partial chains if at least one certificate is in trusted store */\r
# define X509_V_FLAG_PARTIAL_CHAIN 0x80000\r
+/*\r
+ * If the initial chain is not trusted, do not attempt to build an alternative\r
+ * chain. Alternate chain checking was introduced in 1.0.2b. Setting this flag\r
+ * will force the behaviour to match that of previous versions.\r
+ */\r
+# define X509_V_FLAG_NO_ALT_CHAINS 0x100000\r
\r
# define X509_VP_FLAG_DEFAULT 0x1\r
# define X509_VP_FLAG_OVERWRITE 0x2\r