Commit e69aa800 authored by Rich Salz's avatar Rich Salz
Browse files

Add missing #ifdef's to fix build break

parent d94a1a70
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -114,9 +114,11 @@ static void ec_group_free_precomp(EC_GROUP *group)
    switch (group->pre_comp_type) {
    switch (group->pre_comp_type) {
    default:
    default:
        break;
        break;
#ifdef ECP_NISTZ256_REFERENCE_IMPLEMENTATION
    case pct_nistz256:
    case pct_nistz256:
        EC_nistz256_pre_comp_free(group->pre_comp.nistz256);
        EC_nistz256_pre_comp_free(group->pre_comp.nistz256);
        break;
        break;
#endif
#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
    case pct_nistp224:
    case pct_nistp224:
        EC_nistp224_pre_comp_free(group->pre_comp.nistp224);
        EC_nistp224_pre_comp_free(group->pre_comp.nistp224);
@@ -190,9 +192,11 @@ int EC_GROUP_copy(EC_GROUP *dest, const EC_GROUP *src)
    default:
    default:
        dest->pre_comp.ec = NULL;
        dest->pre_comp.ec = NULL;
        break;
        break;
#ifdef ECP_NISTZ256_REFERENCE_IMPLEMENTATION
    case pct_nistz256:
    case pct_nistz256:
        dest->pre_comp.nistz256 = EC_nistz256_pre_comp_dup(src->pre_comp.nistz256);
        dest->pre_comp.nistz256 = EC_nistz256_pre_comp_dup(src->pre_comp.nistz256);
        break;
        break;
#endif
#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
    case pct_nistp224:
    case pct_nistp224:
        dest->pre_comp.nistp224 = EC_nistp224_pre_comp_dup(src->pre_comp.nistp224);
        dest->pre_comp.nistp224 = EC_nistp224_pre_comp_dup(src->pre_comp.nistp224);