On Sun, Aug 08, 1999, Bodo Moeller wrote:
> Claus Assmann <[EMAIL PROTECTED]>:

> >>> Question: is there some simple way to find out whether the client
> >>> has been authenticated? I registered a callback with SSL_CTX_set_verify,
> >>> but I don't completely understand it...

Thanks again for your help!  I use some slightly different code
than your example which worked for my tests:

init:
SSL_CTX_set_verify(ctx, SSL_VERIFY_CLIENT_ONCE | SSL_VERIFY_PEER, verify_cb);

static int verify_cb(int ok, X509_STORE_CTX *ctx) { return 1; }

Is this "equivalent" to your example code? I tried your code and
it does the same for my three test cases... (I know, way too few).
verify_cb should probably only override ok==0, not return 1 all the
time.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to