{\r
*/\r
\r
+#define SSL_CB_ALERT 0x4000\r
+\r
+#define X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT (1 << 0)\r
+#define X509_CHECK_FLAG_NO_WILDCARDS (1 << 1)\r
+#define X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS (1 << 2)\r
+#define X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS (1 << 3)\r
+#define X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS (1 << 4)\r
+\r
/**\r
* @brief create a SSL context\r
*\r
int X509_VERIFY_PARAM_set1_host(X509_VERIFY_PARAM *param,\r
const char *name, size_t namelen);\r
\r
+/**\r
+ * @brief set parameters for X509 host verify action\r
+ *\r
+ * @param param -verify parameters from SSL_get0_param()\r
+ *\r
+ * @param flags - bitfield of X509_CHECK_FLAG_... parameters to set\r
+ *\r
+ * @return 1 for success, 0 for failure\r
+ */\r
+int X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param,\r
+ unsigned long flags);\r
+\r
+/**\r
+ * @brief clear parameters for X509 host verify action\r
+ *\r
+ * @param param -verify parameters from SSL_get0_param()\r
+ *\r
+ * @param flags - bitfield of X509_CHECK_FLAG_... parameters to clear\r
+ *\r
+ * @return 1 for success, 0 for failure\r
+ */\r
+int X509_VERIFY_PARAM_clear_hostflags(X509_VERIFY_PARAM *param,\r
+ unsigned long flags);\r
+\r
/**\r
* @brief get SSL write only IO handle\r
*\r
return &ssl->param;
}
+/**
+ * @brief set X509 host verification flags
+ */
+
+int X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param,
+ unsigned long flags)
+{
+ /* flags not supported yet */
+ return 0;
+}
+
+/**
+ * @brief clear X509 host verification flags
+ */
+
+int X509_VERIFY_PARAM_clear_hostflags(X509_VERIFY_PARAM *param,
+ unsigned long flags)
+{
+ /* flags not supported yet */
+ return 0;
+}
+
/**
* @brief set SSL context client CA certification
*/