~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to ssl/ssltest.c

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2006-05-15 16:00:58 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515160058-pn9osix02x46r0iy
Tags: 0.9.8b-2
* Don't call gcc with -mcpu on i386, we already use -march, so no need for
  -mtune either.
* Always make all directories when building something:
  - The engines directory didn't get build for the static directory, so
    where missing in libcrypo.a
  - The apps directory didn't always get build, so we didn't have an openssl
    and a small part of the regression tests failed.
* Make the package fail to build if the regression tests fail.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2234
2234
        dh->length = 160;
2235
2235
        return(dh);
2236
2236
        }
 
2237
#endif
2237
2238
 
2238
2239
static int do_test_cipherlist(void)
2239
2240
        {
2241
2242
        const SSL_METHOD *meth;
2242
2243
        SSL_CIPHER *ci, *tci = NULL;
2243
2244
 
 
2245
#ifndef OPENSSL_NO_SSL2
2244
2246
        fprintf(stderr, "testing SSLv2 cipher list order: ");
2245
2247
        meth = SSLv2_method();
2246
2248
        while ((ci = meth->get_cipher(i++)) != NULL)
2254
2256
                tci = ci;
2255
2257
                }
2256
2258
        fprintf(stderr, "ok\n");
2257
 
 
 
2259
#endif
 
2260
#ifndef OPENSSL_NO_SSL3
2258
2261
        fprintf(stderr, "testing SSLv3 cipher list order: ");
2259
2262
        meth = SSLv3_method();
2260
2263
        tci = NULL;
2269
2272
                tci = ci;
2270
2273
                }
2271
2274
        fprintf(stderr, "ok\n");
2272
 
 
 
2275
#endif
 
2276
#ifndef OPENSSL_NO_TLS1
2273
2277
        fprintf(stderr, "testing TLSv1 cipher list order: ");
2274
2278
        meth = TLSv1_method();
2275
2279
        tci = NULL;
2284
2288
                tci = ci;
2285
2289
                }
2286
2290
        fprintf(stderr, "ok\n");
 
2291
#endif
2287
2292
 
2288
2293
        return 1;
2289
2294
        }
2290
 
#endif