Home | History | Annotate | Download | only in ssl

Lines Matching refs:cert

3164 		if (!ssl_cert_inst(&s->cert))
3194 if ((s->cert != NULL) && (s->cert->rsa_tmp == NULL) &&
3195 ((s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) ||
3196 (EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512/8))))
3212 if (s->cert->rsa_tmp != NULL)
3213 RSA_free(s->cert->rsa_tmp);
3214 s->cert->rsa_tmp = rsa;
3248 if (s->cert->dh_tmp != NULL)
3249 DH_free(s->cert->dh_tmp);
3250 s->cert->dh_tmp = dh;
3286 if (s->cert->ecdh_tmp != NULL)
3287 EC_KEY_free(s->cert->ecdh_tmp);
3288 s->cert->ecdh_tmp = ecdh;
3335 * (including the cert chain and everything) */
3489 if (!ssl_cert_inst(&s->cert))
3502 s->cert->rsa_tmp_cb = (RSA *(*)(SSL *, int, int))fp;
3509 s->cert->dh_tmp_cb = (DH *(*)(SSL *, int, int))fp;
3516 s->cert->ecdh_tmp_cb = (EC_KEY *(*)(SSL *, int, int))fp;
3534 CERT *cert;
3536 cert=ctx->cert;
3542 if ( (cert->rsa_tmp == NULL) &&
3543 ((cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) ||
3544 (EVP_PKEY_size(cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512/8)))
3571 if (cert->rsa_tmp != NULL)
3572 RSA_free(cert->rsa_tmp);
3573 cert->rsa_tmp=rsa;
3605 if (cert->dh_tmp != NULL)
3606 DH_free(cert->dh_tmp);
3607 cert->dh_tmp=new;
3644 if (cert->ecdh_tmp != NULL)
3646 EC_KEY_free(cert->ecdh_tmp);
3648 cert->ecdh_tmp = ecdh;
3782 CERT *cert;
3784 cert=ctx->cert;
3791 cert->rsa_tmp_cb = (RSA *(*)(SSL *, int, int))fp;
3798 cert->dh_tmp_cb = (DH *(*)(SSL *, int, int))fp;
3805 cert->ecdh_tmp_cb = (EC_KEY *(*)(SSL *, int, int))fp;
3898 CERT *cert;
3902 cert=s->cert;
3949 ssl_set_cert_masks(cert,c);
3950 mask_k = cert->mask_k;
3951 mask_a = cert->mask_a;
3952 emask_k = cert->export_mask_k;
3953 emask_a = cert->export_mask_a;
3955 mask_k=cert->mask_k | s->srp_ctx.srp_Mask;
3956 emask_k=cert->export_mask_k | s->srp_ctx.srp_Mask;
4002 && (s->cert->pkeys[SSL_PKEY_ECC].x509 != NULL)
4007 (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info != NULL)
4008 && (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key != NULL)
4009 && (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key->public_key != NULL)
4010 && (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key->public_key->data != NULL)
4012 (*(s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key->public_key->data) == POINT_CONVERSION_COMPRESSED)
4013 || (*(s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key->public_key->data) == POINT_CONVERSION_COMPRESSED + 1)
4022 (s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec != NULL)
4023 && (s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group != NULL)
4024 && (s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group->meth != NULL)
4025 && (EC_METHOD_get_field_type(s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group->meth) == NID_X9_62_prime_field)
4037 else if (EC_METHOD_get_field_type(s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group->meth) == NID_X9_62_characteristic_two_field)
4054 && (s->cert->pkeys[SSL_PKEY_ECC].x509 != NULL)
4061 (s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec != NULL)
4062 && (s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group != NULL)
4065 ec_nid = EC_GROUP_get_curve_name(s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group);
4067 && (s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group->meth != NULL)
4070 if (EC_METHOD_get_field_type(s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group->meth) == NID_X9_62_prime_field)
4075 else if (EC_METHOD_get_field_type(s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group->meth) == NID_X9_62_characteristic_two_field)
4104 && (s->cert->ecdh_tmp != NULL)
4110 if (s->cert->ecdh_tmp->group != NULL)
4112 ec_nid = EC_GROUP_get_curve_name(s->cert->ecdh_tmp->group);
4114 && (s->cert->ecdh_tmp->group->meth != NULL)
4117 if (EC_METHOD_get_field_type(s->cert->ecdh_tmp->group->meth) == NID_X9_62_prime_field)
4122 else if (EC_METHOD_get_field_type(s->cert->ecdh_tmp->group->meth) == NID_X9_62_characteristic_two_field)