Home | History | Annotate | Download | only in crypto

Lines Matching refs:params

507 			      const struct tls_connection_params *params)
511 if (conn == NULL || params == NULL)
516 if (params->subject_match) {
517 conn->subject_match = os_strdup(params->subject_match);
524 if (params->altsubject_match) {
525 conn->altsubject_match = os_strdup(params->altsubject_match);
533 if (params->ca_cert) {
536 conn->xcred, params->ca_cert, GNUTLS_X509_FMT_PEM);
539 "in PEM format: %s", params->ca_cert,
542 conn->xcred, params->ca_cert,
547 params->ca_cert,
553 if (params->flags & TLS_CONN_ALLOW_SIGN_RSA_MD5) {
559 if (params->flags & TLS_CONN_DISABLE_TIME_CHECKS) {
567 if (params->client_cert && params->private_key) {
570 conn->xcred, params->client_cert, params->private_key,
576 conn->xcred, params->client_cert,
577 params->private_key, GNUTLS_X509_FMT_DER);
585 } else if (params->private_key) {
591 conn->xcred, params->private_key, GNUTLS_X509_FMT_DER,
592 params->private_key_passwd);
623 const struct tls_connection_params *params)
644 if (params->ca_cert) {
646 global->xcred, params->ca_cert, GNUTLS_X509_FMT_PEM);
649 params->ca_cert,
652 global->xcred, params->ca_cert,
657 params->ca_cert,
663 if (params->flags & TLS_CONN_ALLOW_SIGN_RSA_MD5) {
670 if (params->flags & TLS_CONN_DISABLE_TIME_CHECKS) {
678 if (params->client_cert && params->private_key) {
681 global->xcred, params->client_cert,
682 params->private_key, GNUTLS_X509_FMT_PEM);
687 global->xcred, params->client_cert,
688 params->private_key, GNUTLS_X509_FMT_DER);
696 } else if (params->private_key) {
702 global->xcred, params->private_key,
703 GNUTLS_X509_FMT_DER, params->private_key_passwd);