Hi,
I am using my own callback function set by SSL_CTX_ser_verify( , , fn_name)
for client my function is like :
 
 
the function is printing one ( I gave the the server root CA installed the the trusted root CA using the function SSL_CTX_load_verify_locations() )
sslcallbackClient( int ok , X509_STORE_CTX *ctx)
{
        X509 *cert=NULL;
        cert = ctx->current_cert;
 
        int  err=X509_STORE_CTX_get_error(ctx);/*this is returning error 1 for successfull verifivation */
        X509_STORE_CTX_set_error(ctx, err);
        cout <<err<<endl;
        switch (ctx->error)
       {
            case ..
 
 
        }
}
 so for depth one the cout is printing one( root CA verification is giving zero in err field ) in the client side..but the corresponding server side is returning (i.e err= 0 .which is expected I think)
 
can anyone tell me why the clielnt side is its printing one ?
 
thanks in advance
best regards
Ratan Sarkar

Reply via email to