Searched refs:x509_cred (Results 1 – 2 of 2) sorted by relevance
/external/libvncserver/libvncclient/ |
D | tls_gnutls.c | 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() [all …]
|
/external/libvncserver/libvncserver/ |
D | rfbssl_gnutls.c | 33 gnutls_certificate_credentials_t x509_cred; member 59 …TLS_E_SUCCESS == (ret = gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, ctx->x509_cred))) { in rfbssl_init_session() 96 …} else if (!GNUTLS_E_SUCCESS == (ret = gnutls_certificate_allocate_credentials(&ctx->x509_cred))) { in rfbssl_init_global() 98 …} else if ((ret = gnutls_certificate_set_x509_trust_file(ctx->x509_cred, cert, GNUTLS_X509_FMT_PEM… in rfbssl_init_global() 100 …} else if (!GNUTLS_E_SUCCESS == (ret = gnutls_certificate_set_x509_key_file(ctx->x509_cred, cert, … in rfbssl_init_global() 111 gnutls_certificate_set_dh_params(ctx->x509_cred, ctx->dh_params); in rfbssl_init_global() 267 gnutls_certificate_free_credentials(ctx->x509_cred); in rfbssl_destroy()
|