I am using OpenSSL 0.9.8 and I understand how to: 1. Set an X509_VERIFY_PARAM* with an X509_V_FLAG_EXPLICIT_POLICY flag and an oid that I want explicitly verified.
2. Set various flags in the SSL_CTX, such as SSL_VERIFY_PEER with a verify_callback function, and then use it to construct an SSL with SSL_new. However, I am at a loss to understand how to set the X509_VERIFY_PARAM flags within SSL_CTX in order to get SSL_connect to force explicit policy checking client-side on a server certificate supplied to it during the SSL handshake. Certificates that fail an 'openssl verify' on the command line, are accepted without error by my client on SSL_connect. I see that with OpenSSL 1.0 there is the SSL_CTX_set1_param function, but I am using OpenSSL 0.9.8. Are there any series of calls I can make with OpenSSL 0.9.8 to: 1. Modify the SSL_CTX before using it in SSL_new so that explicit policy checking is enforced. 2. Modify the resultant SSL with such flags but before SSL_connect is called. 3. Modify the flags on one of the calls to my verify_callback routine? Any suggestions? Peter ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
