Lines Matching refs:x509_cred
286 gnutls_certificate_credentials_t x509_cred; in CreateX509CertCredential() local
295 if ((ret = gnutls_certificate_allocate_credentials(&x509_cred)) < 0) in CreateX509CertCredential()
300 if ((ret = gnutls_certificate_set_x509_trust_file(x509_cred, in CreateX509CertCredential()
304 gnutls_certificate_free_credentials (x509_cred); in CreateX509CertCredential()
309 if ((ret = gnutls_certificate_set_x509_key_file(x509_cred, in CreateX509CertCredential()
314 gnutls_certificate_free_credentials (x509_cred); in CreateX509CertCredential()
323 if ((ret = gnutls_certificate_set_x509_crl_file(x509_cred, in CreateX509CertCredential()
327 gnutls_certificate_free_credentials (x509_cred); in CreateX509CertCredential()
334 gnutls_certificate_set_dh_params (x509_cred, rfbDHParams); in CreateX509CertCredential()
335 return x509_cred; in CreateX509CertCredential()
357 gnutls_certificate_credentials_t x509_cred = NULL; in HandleVeNCryptAuth() local
427 x509_cred = CreateX509CertCredential(cred); in HandleVeNCryptAuth()
429 if (!x509_cred) return FALSE; in HandleVeNCryptAuth()
441 …utls_credentials_set((gnutls_session_t)client->tlsSession, GNUTLS_CRD_CERTIFICATE, x509_cred)) < 0) in HandleVeNCryptAuth()