New peername element in X509_VERIFY_PARAM_ID
[openssl.git] / crypto / x509 / x509_lcl.h
index 55c791550ba9b626d42ee2391f9470cc106a9192..8350929d7e44f1a37bdb884fcad6ad80b6cb283f 100644 (file)
 
 struct X509_VERIFY_PARAM_ID_st
        {
-       unsigned char *host;    /* If not NULL hostname to match */
-       size_t hostlen;
+       STACK_OF(OPENSSL_STRING) *hosts;        /* Set of acceptable names */
        unsigned int hostflags; /* Flags to control matching features */
+       char *peername;         /* Matching hostname in peer certificate */
        unsigned char *email;   /* If not NULL email address to match */
        size_t emaillen;
        unsigned char *ip;      /* If not NULL IP address to match */
        size_t iplen;           /* Length of IP address */
        };
+
+int x509_check_cert_time(X509_STORE_CTX *ctx, X509 *x, int quiet);