• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/openssl-1.0.0q/ssl/

Lines Matching refs:cert

2265 		if (!ssl_cert_inst(&s->cert))
2295 if ((s->cert != NULL) && (s->cert->rsa_tmp == NULL) &&
2296 ((s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) ||
2297 (EVP_PKEY_size(s->cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512/8))))
2313 if (s->cert->rsa_tmp != NULL)
2314 RSA_free(s->cert->rsa_tmp);
2315 s->cert->rsa_tmp = rsa;
2349 if (s->cert->dh_tmp != NULL)
2350 DH_free(s->cert->dh_tmp);
2351 s->cert->dh_tmp = dh;
2387 if (s->cert->ecdh_tmp != NULL)
2388 EC_KEY_free(s->cert->ecdh_tmp);
2389 s->cert->ecdh_tmp = ecdh;
2436 * (including the cert chain and everything) */
2538 if (!ssl_cert_inst(&s->cert))
2551 s->cert->rsa_tmp_cb = (RSA *(*)(SSL *, int, int))fp;
2558 s->cert->dh_tmp_cb = (DH *(*)(SSL *, int, int))fp;
2565 s->cert->ecdh_tmp_cb = (EC_KEY *(*)(SSL *, int, int))fp;
2583 CERT *cert;
2585 cert=ctx->cert;
2591 if ( (cert->rsa_tmp == NULL) &&
2592 ((cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) ||
2593 (EVP_PKEY_size(cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512/8)))
2620 if (cert->rsa_tmp != NULL)
2621 RSA_free(cert->rsa_tmp);
2622 cert->rsa_tmp=rsa;
2654 if (cert->dh_tmp != NULL)
2655 DH_free(cert->dh_tmp);
2656 cert->dh_tmp=new;
2693 if (cert->ecdh_tmp != NULL)
2695 EC_KEY_free(cert->ecdh_tmp);
2697 cert->ecdh_tmp = ecdh;
2769 CERT *cert;
2771 cert=ctx->cert;
2778 cert->rsa_tmp_cb = (RSA *(*)(SSL *, int, int))fp;
2785 cert->dh_tmp_cb = (DH *(*)(SSL *, int, int))fp;
2792 cert->ecdh_tmp_cb = (EC_KEY *(*)(SSL *, int, int))fp;
2868 CERT *cert;
2872 cert=s->cert;
2914 ssl_set_cert_masks(cert,c);
2915 mask_k = cert->mask_k;
2916 mask_a = cert->mask_a;
2917 emask_k = cert->export_mask_k;
2918 emask_a = cert->export_mask_a;
2963 && (s->cert->pkeys[SSL_PKEY_ECC].x509 != NULL)
2968 (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info != NULL)
2969 && (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key != NULL)
2970 && (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key->public_key != NULL)
2971 && (s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key->public_key->data != NULL)
2973 (*(s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key->public_key->data) == POINT_CONVERSION_COMPRESSED)
2974 || (*(s->cert->pkeys[SSL_PKEY_ECC].x509->cert_info->key->public_key->data) == POINT_CONVERSION_COMPRESSED + 1)
2983 (s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec != NULL)
2984 && (s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group != NULL)
2985 && (s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group->meth != NULL)
2986 && (EC_METHOD_get_field_type(s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group->meth) == NID_X9_62_prime_field)
2998 else if (EC_METHOD_get_field_type(s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group->meth) == NID_X9_62_characteristic_two_field)
3015 && (s->cert->pkeys[SSL_PKEY_ECC].x509 != NULL)
3022 (s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec != NULL)
3023 && (s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group != NULL)
3026 ec_nid = EC_GROUP_get_curve_name(s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group);
3028 && (s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group->meth != NULL)
3031 if (EC_METHOD_get_field_type(s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group->meth) == NID_X9_62_prime_field)
3036 else if (EC_METHOD_get_field_type(s->cert->pkeys[SSL_PKEY_ECC].privatekey->pkey.ec->group->meth) == NID_X9_62_characteristic_two_field)
3066 && (s->cert->ecdh_tmp != NULL)
3072 if (s->cert->ecdh_tmp->group != NULL)
3074 ec_nid = EC_GROUP_get_curve_name(s->cert->ecdh_tmp->group);
3076 && (s->cert->ecdh_tmp->group->meth != NULL)
3079 if (EC_METHOD_get_field_type(s->cert->ecdh_tmp->group->meth) == NID_X9_62_prime_field)
3084 else if (EC_METHOD_get_field_type(s->cert->ecdh_tmp->group->meth) == NID_X9_62_characteristic_two_field)