pike.git / lib / modules / SSL.pmod / Context.pike

version» Context lines:

pike.git/lib/modules/SSL.pmod/Context.pike:496:    if (ke_mode == 2) {    // Unsigned key exchange methods.    kes |= (< KE_null, KE_dh_anon,   #if constant(Crypto.ECC.Curve)    KE_ecdh_anon,   #endif    >);    }    }    + #if constant(Crypto.ECC.Curve) +  if (!sizeof(ecc_curves)) { +  // No ECC curves available ==> No support for ECC. +  kes -= (< +  KE_ecdhe_rsa, KE_ecdhe_ecdsa, +  KE_ecdh_rsa, KE_ecdh_ecdsa, +  KE_ecdh_anon, +  >); +  } + #endif +     if (blacklisted_kes) {    kes -= blacklisted_kes;    }       // Filter unsupported key exchange methods.    array(int) res =    filter(indices(CIPHER_SUITES),    lambda(int suite) {    return kes[CIPHER_SUITES[suite][0]];    });