Branch: Tag:

2015-01-25

2015-01-25 01:31:10 by Martin Nilsson <nilsson@opera.com>

Changed curve() into get_curve() to be consistent with the other methods, and to properly mask the get_curve() in Nettle.ECC_Curve.ECDSA.

191:    return 0;      #if constant(Crypto.ECC.Curve) -  if (cp->key->curve) { +  if (cp->key->get_curve) {    // Is the ECC curve supported by the client?    Crypto.ECC.Curve c = -  ([object(Crypto.ECC.SECP_521R1.ECDSA)]cp->key)->curve(); +  ([object(Crypto.ECC.Curve.ECDSA)]cp->key)->get_curve();    SSL3_DEBUG_MSG("Curve: %O (%O)\n",    c, ECC_NAME_TO_CURVE[c->name()]);    return has_value(ecc_curves, ECC_NAME_TO_CURVE[c->name()]);
417:       certificate_chain = cert->certs;   #if constant(Crypto.ECC.Curve) -  if (private_key->curve) { -  curve = [object(Crypto.ECC.Curve)]private_key->curve(); +  if (private_key->get_curve) { +  curve = [object(Crypto.ECC.Curve)]private_key->get_curve();    }   #endif /* Crypto.ECC.Curve */