gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnutls_certificate_verify_peers2 failing with GNUTLS_E_INVALID_REQUEST


From: sneeboo
Subject: gnutls_certificate_verify_peers2 failing with GNUTLS_E_INVALID_REQUEST
Date: Wed, 1 Aug 2012 02:10:31 -0700 (PDT)

Hello, as a complete novice in gnutls (and in security in general)  I am
doing some development using libmicrohttpd with the purpose of developing a
webserver that works with client certificates for user authorization
purposes.

I am starting my work by cloning the example in the libmicrohttpd tutorial.
This code uses gnutls_certificate_verify_peers2 () to obtain the certificate
of the connection in order to proceed with the required validations.

The problem is that gnutls_certificate_verify_peers2() fails with
GNUTLS_E_INVALID_REQUEST. Is there anyone that might give me a pointer of
what could be the reason? the only sensible parameter that this function
accepts as input is the tls session that in libmicrohttpd code is obtained
with a call as follows

MHD_get_connection_info (connection, MHD_CONNECTION_INFO_GNUTLS_SESSION)

The other parameter of gnutls_certificate_verify_peers2 is an ouput one and
should give no problem

thanks
-- 
View this message in context: 
http://old.nabble.com/gnutls_certificate_verify_peers2-failing-with-GNUTLS_E_INVALID_REQUEST-tp34239744p34239744.html
Sent from the GnuPG - Gnutls - Dev mailing list archive at Nabble.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]