Lines Matching refs:session
170 static int verify_cert_authorized(gnutls_session_t session) { in verify_cert_authorized() argument
176 r = gnutls_certificate_verify_peers2(session, &status); in verify_cert_authorized()
180 type = gnutls_certificate_type_get(session); in verify_cert_authorized()
191 static int get_client_cert(gnutls_session_t session, gnutls_x509_crt_t *client_cert) { in get_client_cert() argument
197 assert(session); in get_client_cert()
200 pcert = gnutls_certificate_get_peers(session, &listsize); in get_client_cert()
251 gnutls_session_t session; in check_permissions() local
269 session = ci->tls_session; in check_permissions()
270 assert(session); in check_permissions()
272 r = get_client_cert(session, &client_cert); in check_permissions()
291 r = verify_cert_authorized(session); in check_permissions()